Initial import of fitme3070.pt platform
Plain-PHP fleet platform with id.andmore.pt SSO. Wires shared/platform-tools as a submodule (platform_update, backups, git/migration tools) like the other platforms. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
commit
e68d357177
2330 files changed
+215968
No files matched your search
@@ -0,0 +1,31 @@
|
||||
/*!
|
||||
* jQuery & Zepto Lazy - YouTube Plugin - v1.5
|
||||
* http://jquery.eisbehr.de/lazy/
|
||||
*
|
||||
* Copyright 2012 - 2018, Daniel 'Eisbehr' Kern
|
||||
*
|
||||
* Dual licensed under the MIT and GPL-2.0 licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
;(function($) {
|
||||
// load youtube video iframe, like:
|
||||
// <iframe data-loader="yt" data-src="1AYGnw6MwFM" data-nocookie="1" width="560" height="315" frameborder="0" allowfullscreen></iframe>
|
||||
$.lazy(['yt', 'youtube'], function(element, response) {
|
||||
if (element[0].tagName.toLowerCase() === 'iframe') {
|
||||
// pass source to iframe
|
||||
var noCookie = /1|true/.test(element.attr('data-nocookie'));
|
||||
element.attr('src', 'https://www.youtube' + (noCookie ? '-nocookie' : '') + '.com/embed/' + element.attr('data-src') + '?rel=0&showinfo=0');
|
||||
|
||||
// remove attribute
|
||||
if (this.config('removeAttribute')) {
|
||||
element.removeAttr('data-src');
|
||||
}
|
||||
}
|
||||
|
||||
else {
|
||||
// pass error state
|
||||
response(false);
|
||||
}
|
||||
});
|
||||
})(window.jQuery || window.Zepto);
|
||||
Reference in new issue
Block a user