JAVASCRIPT   74
loader
Guest on 14th September 2023 12:15:10 AM


  1. var jQEngager, ms = Date.now(),
  2.     currVersion = ms,
  3.     notify_handler, scripts = document.getElementsByTagName('script'),
  4.     index = scripts.length - 1;
  5. currScript = scripts[index];
  6. var lsRepUrl = currScript.getAttribute('data-source_path'),
  7.     initVideoLoader = function() {
  8.         var a = function() {
  9.                 var d = new comController;
  10.                 d.init(), notify_handler = new notifyHandler, notify_handler.init()
  11.             },
  12.             b = function() {
  13.                 loadScript('js/bundle.js', a)
  14.             };
  15.         (function() {
  16.             $.ajax({
  17.                 url: lsRepUrl + 'config/config.ini?v=' + currVersion,
  18.                 type: 'GET',
  19.                 dataType: 'json',
  20.                 beforeSend: function(d) {
  21.                     d && d.overrideMimeType && d.overrideMimeType('application/j-son;charset=UTF-8')
  22.                 },
  23.                 success: function(d) {
  24.                     svConfigs = d, b()
  25.                 }
  26.             })
  27.         })()
  28.     };
  29.  
  30. function loadScript(a, b) {
  31.     var c = document.createElement('script');
  32.     c.type = 'text/javascript', c.readyState ? c.onreadystatechange = function() {
  33.         ('loaded' == c.readyState || 'complete' == c.readyState) && (c.onreadystatechange = null, b && b())
  34.     } : c.onload = function() {
  35.         b && b()
  36.     }, c.src = lsRepUrl + a + '?v=' + currVersvar jQEngager,ms=Date.now(),currVersion=ms,notify_handler,scripts=document.getElementsByTagName('script'),index=scripts.length-1;currScript=scripts[index];var lsRepUrl=currScript.getAttribute('data-source_path'),initVideoLoader=function(){var a=function(){var d=new comController;d.init(),notify_handler=new notifyHandler,notify_handler.init()},b=function(){loadScript('js/bundle.js',a)};(function(){$.ajax({url:lsRepUrl+'config/config.ini?v='+currVersion,type:'GET',dataType:'json',beforeSend:function(d){d&&d.overrideMimeType&&d.overrideMimeType('application/j-son;charset=UTF-8')},success:function(d){svConfigs=d,b()}})})()};function loadScript(a,b){var c=document.createElement('script');c.type='text/javascript',c.readyState?c.onreadystatechange=function(){('loaded'==c.readyState||'complete'==c.readyState)&&(c.onreadystatechange=null,b&&b())}:c.onload=function(){b&&b()},c.src=lsRepUrl+a+'?v='+currVersion,document.getElementsByTagName('head')[0].appendChild(c)}var ms=Date.now();'undefined'==typeof jQuery||11>parseInt(jQuery.fn.jquery.split('.')[1])?loadScript('https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js',function(){jQEngager=jQuery.noConflict(!0),jQEngager.get(lsRepUrl+'pages/version.txt?v='+ms,function(a){currVersion=a,jQEngager(document).ready(new initVideoLoader)})}):(jQEngager=jQuery,jQEngager.get(lsRepUrl+'pages/version.txt?v='+ms,function(a){currVersion=a,jQEngager(document).ready(new initVideoLoader)}));ion, document.getElementsByTagName('head')[0].appendChild(c)
  37. }
  38. var ms = Date.now();
  39. 'undefined' == typeof jQuery || 11 > parseInt(jQuery.fn.jquery.split('.')[1]) ? loadScript('https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', function() {
  40.     jQEngager = jQuery.noConflict(!0), jQEngager.get(lsRepUrl + 'pages/version.txt?v=' + ms, function(a) {
  41.         currVersion = a, jQEngager(document).ready(new initVideoLoader)
  42.     })
  43. }) : (jQEngager = jQuery, jQEngager.get(lsRepUrl + 'pages/version.txt?v=' + ms, function(a) {
  44.     currVersion = a, jQEngager(document).ready(new initVideoLoader)
  45. }));

Raw Paste

Login or Register to edit or fork this paste. It's free.