1/// <reference path="jquery.min-1.8.2.js" /> 2/// <reference path="../language/zh_cn.js" /> 3var loading = new Loading(); 4var loadingMsg = { 5 loading: sys_lang.loading.loading + '...', 6 submit: sys_lang.loading.sumbit +'...' 7}; 8 9///str:è¦æ¾ç¤ºçææ¬ 10function Loading() { 11 var divMask; 12 var divCommonLoading; 13 14 var opts = { 15 lines: 9, // The number of lines to draw 16 length: 0, // The length of each line 17 width: 10, // The line thickness 18 radius: 15, // The radius of the inner circle 19 corners: 1, // Corner roundness (0..1) 20 rotate: 0, // The rotation offset 21 color: '#fff', // #rgb or #rrggbb 22 speed: 1, // Rounds per second 23 trail: 60, // Afterglow percentage 24 shadow: false, // Whether to render a shadow 25 hwaccel: false, // Whether to use hardware acceleration 26 className: 'spinner', // The CSS class to assign to the spinner 27 zIndex: 2e9, // The z-index (defaults to 2000000000) 28 top: 'auto', // Top position relative to parent in px 29 left: 'auto' // Left position relative to parent in px 30 }; 31 var spinner = new Spinner(opts); 32 33 //æ¾ç¤ºå è½½å¨ç» 34 this.showLoading = function (str) { 35 //å¨body䏿·»å html 36 /* 37 <div class="mask"></div> 38 39 <div class="common-loading"> 40 <div id="foo" style="width:100px; height:100px;"> 41 <p>æäº¤ä¸â¦</p> 42 </div> 43 </div> 44 */ 45 //ææ¶æstråæ»,åæLoading 46 str = "Loading..."; 47 48 divMask = $("<div class='mask' style='display:none;z-index:200'></div>").appendTo($("body")); 49 divCommonLoading = $("<div class='common-loading' style='z-index:1004'></div>").appendTo($("body")); 50 var divFoo = $("<div id='foo_loading' class='loading_box' style='width:100px;height:100px;'></div>").appendTo(divCommonLoading); 51 var title = $("<div class='loading_text'>" + str + "</div>").appendTo(divCommonLoading); 52 53 var target = document.getElementById('foo_loading'); 54 spinner.spin(target); 55 divMask.css('display', ''); 56 } 57 58 //éèå è½½å¨ç» 59 this.disLoading = function () { 60 spinner.stop(); 61 $('.mask').remove(); 62 $('.common-loading').remove(); 63 } 64}
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.