Software: Apache. PHP/8.3.27 uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364) Safe-mode: OFF (not secure) /usr/share/nodejs/turbolinks/src/turbolinks/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // Generated by CoffeeScript 1.12.8
(function() {
require('./snapshot');
require('./snapshot_renderer');
require('./error_renderer');
Turbolinks.View = (function() {
function View(delegate) {
this.delegate = delegate;
this.htmlElement = document.documentElement;
}
View.prototype.getRootLocation = function() {
return this.getSnapshot().getRootLocation();
};
View.prototype.getElementForAnchor = function(anchor) {
return this.getSnapshot().getElementForAnchor(anchor);
};
View.prototype.getSnapshot = function() {
return Turbolinks.Snapshot.fromHTMLElement(this.htmlElement);
};
View.prototype.render = function(arg, callback) {
var error, isPreview, snapshot;
snapshot = arg.snapshot, error = arg.error, isPreview = arg.isPreview;
this.markAsPreview(isPreview);
if (snapshot != null) {
return this.renderSnapshot(snapshot, isPreview, callback);
} else {
return this.renderError(error, callback);
}
};
View.prototype.markAsPreview = function(isPreview) {
if (isPreview) {
return this.htmlElement.setAttribute("data-turbolinks-preview", "");
} else {
return this.htmlElement.removeAttribute("data-turbolinks-preview");
}
};
View.prototype.renderSnapshot = function(snapshot, isPreview, callback) {
return Turbolinks.SnapshotRenderer.render(this.delegate, callback, this.getSnapshot(), Turbolinks.Snapshot.wrap(snapshot), isPreview);
};
View.prototype.renderError = function(error, callback) {
return Turbolinks.ErrorRenderer.render(this.delegate, callback, error);
};
return View;
})();
}).call(this);
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0112 ]-- |