1/* Data */ 2(function (window) { 3 var FWDRLData = function (props, playListElement, prt) { 4 var _s = this; 5 var prototype = FWDRLData.prototype; 6 7 _s.props_obj = props; 8 _s.skinPaths_ar = []; 9 _s.images_ar = []; 10 _s.cats_ar = []; 11 _s.countLoadedSkinImages = 0; 12 13 //###################################// 14 /*init*/ 15 //###################################// 16 _s.init = function () { 17 _s.parseProperties(); 18 }; 19 20 //#############################################// 21 // parse properties. 22 //#############################################// 23 _s.parseProperties = function () { 24 _s.mainFolderPath = _s.props_obj.mainFolderPath; 25 if (!_s.mainFolderPath) { 26 setTimeout(function () { 27 if (_s == null) return; 28 errorMessage_str = 29 "The <font color='#FF0000'>mainFolderPath</font> property is not defined in the constructor function!"; 30 _s.dispatchEvent(FWDRLData.LOAD_ERROR, { text: errorMessage_str }); 31 }, 100); 32 return; 33 } 34 35 if (_s.mainFolderPath.lastIndexOf('/') + 1 != _s.mainFolderPath.length) { 36 _s.mainFolderPath += '/'; 37 } 38 39 _s.skin = '/2022/content/skin/'; 40 _s.wrningIconPath_str = _s.skin + 'warning.png'; 41 _s.useVectorIcons = _s.props_obj.useVectorIcons; 42 43 _s.skinPaths_ar = [ 44 { img: (_s.playN_img = new Image()), src: _s.skin + 'play-button.png' }, 45 { img: (_s.nextN_img = new Image()), src: _s.skin + 'next-button.png' }, 46 { img: (_s.prevN_img = new Image()), src: _s.skin + 'prev-button.png' }, 47 { img: (_s.closeN_img = new Image()), src: _s.skin + 'close-button.png' }, 48 { img: (_s.fullScreenN_img = new Image()), src: _s.skin + 'fullscreen-button.png' }, 49 { 50 img: (_s.normalScreenN_img = new Image()), 51 src: _s.skin + 'normalscreen-button.png', 52 }, 53 { img: (_s.maximizeN_img = new Image()), src: _s.skin + 'maximize-button.png' }, 54 { img: (_s.minimizeN_img = new Image()), src: _s.skin + 'minimize-button.png' }, 55 { img: (_s.pauseN_img = new Image()), src: _s.skin + 'pause-button.png' }, 56 { 57 img: (_s.showShareImage_img = new Image()), 58 src: _s.skin + 'show-share-button.png', 59 }, 60 { img: (_s.facebookN_img = new Image()), src: _s.skin + 'facebook-button.png' }, 61 { img: (_s.twitterN_img = new Image()), src: _s.skin + 'twitter-button.png' }, 62 { img: (_s.linkedinN_img = new Image()), src: _s.skin + 'linkedin-button.png' }, 63 { img: (_s.tumblrN_img = new Image()), src: _s.skin + 'tumblr-button.png' }, 64 { img: (_s.pinterestN_img = new Image()), src: _s.skin + 'pinterest-button.png' }, 65 { img: (_s.redditN_img = new Image()), src: _s.skin + 'reddit-button.png' }, 66 { img: (_s.bufferN_img = new Image()), src: _s.skin + 'buffer-button.png' }, 67 { img: (_s.diggN_img = new Image()), src: _s.skin + 'digg-button.png' }, 68 { img: (_s.bloggerN_img = new Image()), src: _s.skin + 'blogger-button.png' }, 69 ]; 70 71 //setup skin paths 72 _s.prevSPath = _s.skin + 'prev-button-over.png'; 73 _s.nextSPath = _s.skin + 'next-button-over.png'; 74 _s.closeSPath = _s.skin + 'close-button-over.png'; 75 _s.fullScreenS = _s.skin + 'fullscreen-button-over.png'; 76 _s.normalScreenS = _s.skin + 'normalscreen-button-over.png'; 77 _s.maximizeSPath = _s.skin + 'maximize-button-over.png'; 78 _s.minimizeSPath = _s.skin + 'minimize-button-over.png'; 79 _s.playS = _s.skin + 'play-button-over.png'; 80 _s.pauseS = _s.skin + 'pause-button-over.png'; 81 _s.showShareImageSPath = _s.skin + 'show-share-button-over.png'; 82 _s.facebookSPath = _s.skin + 'facebook-button-over.png'; 83 _s.twitterSPath = _s.skin + 'twitter-button-over.png'; 84 _s.linkedinSPath = _s.skin + 'linkedin-button-over.png'; 85 _s.tumblrSPath = _s.skin + 'tumblr-button-over.png'; 86 _s.pinterestSPath = _s.skin + 'pinterest-button-over.png'; 87 _s.redditSPath = _s.skin + 'reddit-button-over.png'; 88 _s.bufferSPath = _s.skin + 'buffer-button-over.png';
89 _s.diggSPath = _s.skin + 'digg-button-over.png'; 90 _s.bloggerSPath = _s.skin + 'blogger-button-over.png'; 91 _s.videoIconPath = _s.skin + 'thumb-play-icon.png'; 92 93 _s.totalGraphics = _s.skinPaths_ar.length; 94 if (_s.useVectorIcons) { 95 setTimeout(function () { 96 _s.dispatchEvent(FWDRLData.SKIN_LOAD_COMPLETE); 97 }, 50); 98 } else { 99 _s.loadSkin(); 100 } 101 }; 102 103 //####################################// 104 /* load buttons graphics */ 105 //###################################//n 106 _s.loadSkin = function () { 107 var img; 108 var src; 109 for (var i = 0; i < _s.totalGraphics; i++) { 110 img = _s.skinPaths_ar[i].img; 111 src = _s.skinPaths_ar[i].src; 112 img.onload = _s.onSkinLoadHandler; 113 img.onerror = _s.onSkinLoadErrorHandler; 114 img.src = src; 115 } 116 }; 117 118 _s.onSkinLoadHandler = function (e) { 119 _s.countLoadedSkinImages++; 120 if (_s.countLoadedSkinImages == _s.totalGraphics) { 121 _s.dispatchEvent(FWDRLData.SKIN_LOAD_COMPLETE); 122 } 123 }; 124 125 _s.onSkinLoadErrorHandler = function (e) { 126 if (FWDRLUtils.isIEAndLessThen9) { 127 message = 'Graphics image not found!'; 128 } else { 129 message = 130 "The skin icon with label <font color='#FF0000'>" + 131 e.target.src + 132 "</font> can't be loaded."; 133 } 134 135 if (window.console) console.log(e); 136 var err = { text: message }; 137 setTimeout(function () { 138 _s.dispatchEvent(FWDRLData.LOAD_ERROR, err); 139 }, 100); 140 }; 141 142 _s.init(); 143 }; 144 145 /* set prototype */ 146 FWDRLData.setPrototype = function () { 147 FWDRLData.prototype = new FWDRLEventDispatcher(); 148 }; 149 150 FWDRLData.prototype = null; 151 152 FWDRLData.PRELOADER_LOAD_DONE = 'onPreloaderLoadDone'; 153 FWDRLData.LOAD_DONE = 'onLoadDone'; 154 FWDRLData.LOAD_ERROR = 'onLoadError'; 155 FWDRLData.IMAGE_LOADED = 'onImageLoaded'; 156 FWDRLData.SKIN_LOAD_COMPLETE = 'onSkinLoadComplete'; 157 FWDRLData.SKIN_PROGRESS = 'onSkinProgress'; 158 FWDRLData.IMAGES_PROGRESS = 'onImagesPogress'; 159 FWDRLData.PLAYLIST_LOAD_COMPLETE = 'onPlaylistLoadComplete'; 160 161 window.FWDRLData = FWDRLData; 162})(window);
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.