Skip to content

@joedeveloper /gist:1731427
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ancient script loader
/** helper function to dynamically include js */
var js;
function include_js(file) {
var html_doc = document.getElementsByTagName('head')[0];
js = document.createElement('script');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', file);
html_doc.appendChild(js);
js.onreadystatechange = function () {
if (js.readyState == 'complete' || js.readyState == 'loaded') {
thumbgalleryinit(TGconfig);
}
};
js.onload = function () {
thumbgalleryinit(TGconfig);
};
return false;
}
showTG = function(config){
TGconfig = config;
include_js('assets/js/yuiloader-dom-event/yuiloader-dom-event.js');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.