1$(function() { 2 $(".accordion").each(function(i, obj) { 3 var targethide = obj.dataset.accordionhide; 4 var targetshow = obj.dataset.accordionshow; 5 $("#"+targetshow).hide(); 6 $(obj).click(function() { 7 $("#"+targethide).slideToggle('fast'); 8 $("#"+targetshow).slideToggle('fast'); 9 }); 10 }); 11}); 12 13function load(i, obj, padding) { 14 var name = obj.dataset.name; 15 var img = obj.dataset.img; 16 var path = obj.dataset.path; 17 var width = parseInt(obj.style.width); 18 var height = parseInt(obj.style.height); 19 InsertWebGlGame(obj, name, img, path, width, height, padding); 20 obj.style.width = null; 21 obj.style.height = null; 22 obj.style.paddingBottom = '0px'; 23} 24 25$(function() { 26 $(".godotgame").each(function(i, obj) { 27 load(i, obj, 0); 28 }); 29 $(".webglgame").each(function(i, obj) { 30 load(i, obj, 20); 31 }); 32}); 33 34function InsertWebGlGame(elem, name, img, path, width, height, padding) { 35 var paddedheight = height + padding; 36 var halfwidth = width * 0.5; 37 elem.innerHTML = '\ 38<div class="flashgamecontainer" style="height:' + paddedheight + 'px">\ 39 <div class="flashgame" style="margin-left:-' + halfwidth + 'px" onclick="LoadWebGlGame(this, \'' + name + '\', \'' + path + '\', ' + width + ', ' + height + ', ' + padding + ');">\ 40 <div class="overlayimagecontainer">\ 41 <div class="overlayimagecontainerimage" style="width:' + width + 'px; height:' + height + 'px;">\ 42 <img src="' + img + '">\ 43 </div>\ 44 <div class="overlayimageoverlayalwaysshow">\ 45 <div class="overlayimageoverlaytext lightpulsate">\ 46 <h1>Click to Run</h1>\ 47 </div>\ 48 </div>\ 49 </div>\ 50 </div>\ 51</div>\ 52 '; 53} 54 55function LoadWebGlGame(elem, name, path, width, height, padding) { 56 var paddedheight = height + padding; 57 elem.onclick = null; 58 elem.innerHTML = '<iframe id="webglframe" src="' + path + '" style="border:0px #000000 none;" name="' + name + '" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="' + paddedheight + 'px" width="' + width + 'px"></iframe>'; 59 var iframe = document.getElementById("webglframe"); 60 iframe.onload = function() { 61 iframe.contentWindow.focus(); 62 var gameContainer = iframe.contentDocument.getElementById("gameContainer"); 63 if (gameContainer) { 64 gameContainer.focus(); 65 } 66 }; 67}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.