1/* 2ESIMO Portal scripts 3*/ 4function getHttpParam( name ){ 5 try{ 6 name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); 7 var regexS = "[\\?&]"+name+"=([^&#]*)"; 8 var regex = new RegExp( regexS ); 9 var results = regex.exec( window.location.href ); 10 if( results == null ) 11 return ''; 12 else 13 return decodeURIComponent(results[1]); 14 }catch(e){console.log(e.message);} 15 return ''; 16} 17 18function stretchDivToParent(divToStretch){ 19 var divTop = divToStretch.offset().top; 20 var divHeight = divToStretch.height(); 21 var parentTop = divToStretch.parent().offset().top; 22 var parentHeight = divToStretch.parent().height(); 23 24 //alert("dt"+divTop+"dh"+divHeight+"pt"+parentTop+"ph"+parentHeight); 25 if ((divTop + divHeight) < (parentTop + parentHeight)) 26 divToStretch.height(parentHeight- divTop + parentTop); 27 28} 29 30jQuery(function($){ 31 32try{ 33$('ul#tabsHeader li ul').each(function(){ 34 $(this).parent().children('a').css('background','url(/portal-core/themes/esimo-central/images/icons/icon-tabsheader.png) no-repeat 95% 40%'); 35 $(this).parent().children('a').css('padding-right','16px'); 36 $(this).parent().css('z-index','1000'); 37}); 38 39$('ul#tabsHeader li#current ul').each(function(){ 40 $(this).parent().children('a').css('background','url(/portal-core/themes/esimo-central/images/icons/icon-tabsheader-current.png) no-repeat 95% 40%'); 41}); 42}catch(e){ 43} 44 45try{ 46 if(document.URL.indexOf('portal/questions')>0){ 47 $('.portlet-chzn-select').each(function(){ 48 if ($(this).attr('multiple') == undefined) 49 $(this).attr("data-placeholder","---вÑбеÑиÑе один ваÑÐ¸Ð°Ð½Ñ Ð¾ÑвеÑа---").chosen({no_results_text: "ÐÐµÑ Ñовпадений"}); 50 else 51 $(this).attr("data-placeholder","---вÑбеÑиÑе один или неÑколÑко ваÑианÑов оÑвеÑа---").chosen({no_results_text: "ÐÐµÑ Ñовпадений"}); 52 }); 53 } 54 else 55 $('.portlet-chzn-select').attr("data-placeholder","...").chosen({no_results_text: "ÐÐµÑ Ñовпадений"}); 56}catch(e){ 57} 58 59try{ 60$(".portlet-accordion").tabs(".portlet-accordion div.pane", {tabs: 'h2', effect: 'slide', initialIndex: null}); 61$("ul.portlet-tabs").tabs("div.panes > div"); 62$(".portlet-rangeinput").rangeinput(); 63$('.scrollable_horizontal').each( function () { 64 $(this).scrollable({ speed: 300}).navigator(); 65 } ); 66}catch(e){ 67} 68 69try{ 70$("a.preview").live({ 71mouseenter: 72 function(e) 73 { 74 this.t = this.title; 75 this.title = ""; 76 var c = (this.t != "") ? "<br/>" + this.t : ""; 77 $("#body").append("<p id='preview'><img src='"+ this.href +"' />"+ c +"</p>"); 78 $("#preview").css("top",(e.pageY - 10) + "px") 79 if (e.pageX > 500) 80 $("#preview").css("left",(e.pageX - 230) + "px") 81 else 82 $("#preview").css("left",(e.pageX + 30) + "px") 83 $("#preview").fadeIn("fast"); 84 }, 85mouseleave: 86 function() 87 { 88 $("#preview").remove(); 89 } 90} 91); 92}catch(e){ 93} 94 95try{ 96$('.portlet-datepicker').datetimepicker({timeFormat: 'hh:mm:ss', dateFormat:'yy-mm-dd', showSecond:true, 97changeMonth:true, 98changeYear:true, 99timeOnlyTitle: 'ÐÑбеÑиÑе вÑемÑ', 100 timeText: 'ÐÑемÑ', 101 hourText: 'ЧаÑÑ', 102 minuteText: 'ÐинÑÑÑ', 103 secondText: 'СекÑндÑ', 104 currentText: 'СейÑаÑ', 105 closeText: 'ÐакÑÑÑÑ', 106 prevText: '<ÐÑед', 107 nextText: 'След>', 108 monthNames: ['ЯнваÑÑ','ФевÑалÑ','ÐаÑÑ','ÐпÑелÑ','Ðай','ÐÑнÑ', 109 'ÐÑлÑ','ÐвгÑÑÑ','СенÑÑбÑÑ','ÐкÑÑбÑÑ','ÐоÑбÑÑ','ÐекабÑÑ'], 110 monthNamesShort: ['Янв','Фев','ÐаÑ','ÐпÑ','Ðай','ÐÑн', 111 'ÐÑл','Ðвг','Сен','ÐкÑ','ÐоÑ','Ðек'], 112 dayNames: ['воÑкÑеÑенÑе','понеделÑник','вÑоÑник','ÑÑеда','ÑеÑвеÑг','пÑÑниÑа','ÑÑббоÑа'], 113 dayNamesShort: ['вÑк','пнд','вÑÑ','ÑÑд','ÑÑв','пÑн','ÑбÑ'], 114 dayNamesMin: ['ÐÑ','Ðн','ÐÑ','СÑ','ЧÑ','ÐÑ','Сб'], 115 weekHeader: 'Ðе', 116 firstDay: 1, 117 isRTL: false, 118 showMonthAfterYear: false, 119 yearSuffix: '' 120 }); 121 122$('.portlet-onlydatepicker').datepicker({ 123 dateFormat:'yy-mm-dd', 124 changeMonth:true, 125 changeYear:true, 126 currentText: 'СейÑаÑ', 127 closeText: 'ÐакÑÑÑÑ', 128 prevText: '<ÐÑед', 129 nextText: 'След>', 130 monthNames: ['ЯнваÑÑ','ФевÑалÑ','ÐаÑÑ','ÐпÑелÑ','Ðай','ÐÑнÑ', 131 'ÐÑлÑ','ÐвгÑÑÑ','СенÑÑбÑÑ','ÐкÑÑбÑÑ','ÐоÑбÑÑ','ÐекабÑÑ'], 132 monthNamesShort: ['Янв','Фев','ÐаÑ','ÐпÑ','Ðай','ÐÑн', 133 'ÐÑл','Ðвг','Сен','ÐкÑ','ÐоÑ','Ðек'], 134 dayNames: ['воÑкÑеÑенÑе','понеделÑник','вÑоÑник','ÑÑеда','ÑеÑвеÑг','пÑÑниÑа','ÑÑббоÑа'], 135 dayNamesShort: ['вÑк','пнд','вÑÑ','ÑÑд','ÑÑв','пÑн','ÑбÑ'], 136 dayNamesMin: ['ÐÑ','Ðн','ÐÑ','СÑ','ЧÑ','ÐÑ','Сб'], 137 weekHeader: 'Ðе',
138 firstDay: 1, 139 isRTL: false, 140 showMonthAfterYear: false, 141 yearSuffix: '' 142 }); 143 144$('.portlet-datepicker-T-eng').datetimepicker({timeFormat: 'hh:mm:ss', dateFormat:'yy-mm-dd', showSecond:true, 145separator: 'T', 146changeMonth:true, 147changeYear:true 148}); 149 150$('.portlet-datepicker-T-ru').datetimepicker({timeFormat: 'hh:mm:ss', dateFormat:'yy-mm-dd', showSecond:true, 151 separator: 'T', 152 changeMonth:true, 153 changeYear:true, 154 timeOnlyTitle: 'ÐÑбеÑиÑе вÑемÑ', 155 timeText: 'ÐÑемÑ', 156 hourText: 'ЧаÑÑ', 157 minuteText: 'ÐинÑÑÑ', 158 secondText: 'СекÑндÑ', 159 currentText: 'СейÑаÑ', 160 closeText: 'ÐакÑÑÑÑ', 161 prevText: '<ÐÑед', 162 nextText: 'След>', 163 monthNames: ['ЯнваÑÑ','ФевÑалÑ','ÐаÑÑ','ÐпÑелÑ','Ðай','ÐÑнÑ', 164 'ÐÑлÑ','ÐвгÑÑÑ','СенÑÑбÑÑ','ÐкÑÑбÑÑ','ÐоÑбÑÑ','ÐекабÑÑ'], 165 monthNamesShort: ['Янв','Фев','ÐаÑ','ÐпÑ','Ðай','ÐÑн', 166 'ÐÑл','Ðвг','Сен','ÐкÑ','ÐоÑ','Ðек'], 167 dayNames: ['воÑкÑеÑенÑе','понеделÑник','вÑоÑник','ÑÑеда','ÑеÑвеÑг','пÑÑниÑа','ÑÑббоÑа'], 168 dayNamesShort: ['вÑк','пнд','вÑÑ','ÑÑд','ÑÑв','пÑн','ÑбÑ'], 169 dayNamesMin: ['ÐÑ','Ðн','ÐÑ','СÑ','ЧÑ','ÐÑ','Сб'], 170 weekHeader: 'Ðе', 171 firstDay: 1, 172 isRTL: false, 173 showMonthAfterYear: false, 174 yearSuffix: '' 175 }); 176 177$('.portlet-rubricpicker').rubricPicker(); 178}catch(e){ 179} 180 181try{ 182 $('.portlet-table-plugin').dataTable({ 183 "sDom": '<"portlet-table-top"lpiTCfr>t<"portlet-table-bottom"pi>', 184 "sPaginationType": "full_numbers", 185 "bProcessing": true, 186 "bAutoWidth": false, 187 "bSortClasses": false, 188 "sPaginationType": "full_numbers", 189 "aLengthMenu": [[20, 50, 100, 250, -1], [20, 50, 100, 250, "ÐÑе"]], 190 "iDisplayLength": 20, 191 "sPaginationType": "full_numbers", 192 "oColVis": { 193 "buttonText": "" 194 }, 195 "oLanguage": { 196 "sUrl": "/portal-ajax/jquery/lang.json" 197 }, 198 "oTableTools": { 199 "sSwfPath": "/portal-ajax/jquery/copy_cvs_xls.swf", 200 "aButtons": [ { "sExtends":"collection", 201 "sButtonText":"", 202 "aButtons": [ 203 {"sExtends": "csv", "sButtonText": "CSV"}, 204 {"sExtends": "xls","sButtonText": "Excel" }, 205 {"sExtends": "copy", "sButtonText": "ÐÑÑÐµÑ Ð¾Ð±Ð¼ÐµÐ½Ð°"} 206 ] 207 }] 208 } 209 }); 210}catch(e){ 211} 212 213try{ 214$('.portlet-map-simple').makemap(); 215$('ul:.marquee-style-1').newsticker(10000); 216$('ul:.marquee-style-2').newsticker(10000); 217$('ul:.marquee-style-3').newsticker(10000); 218}catch(e){ 219} 220 221try{ 222$('select[id$="userorgid"]').each(function(){ 223var selected = $(this).val(); 224if (selected == 1196) 225 selected = 0; 226var id = $(this).attr('id'); 227var selectarray = []; 228$('option',$(this)).each(function(){ 229 selectarray.push({"value": $(this).val(),"name": $(this).html() }); 230 $(this).remove(); 231}); 232selectarray.sort(compareobj); 233$(this).append('<option value="0">ÐÑÑÐ³Ð°Ñ Ð¾ÑганизаÑиÑ</option>'); 234for (var i=0; i<selectarray.length; i++){ 235 if (selectarray[i].value == selected) 236 $(this).append('<option value="'+selectarray[i].value+'" selected="selected">'+selectarray[i].name+'</option>'); 237 else if (selectarray[i].value != 0) 238 $(this).append('<option value="'+selectarray[i].value+'">'+selectarray[i].name+'</option>'); 239} 240 241$(this).attr("data-placeholder","..."); 242$(this).chosen({no_results_text: "ÐÐµÑ Ñовпадений"}); 243 244}); 245}catch(e){ 246} 247 248try{ 249$('#portal-select').first().each(function(){ 250if (window.location.pathname.indexOf('portal/mk')==-1){ 251 $.ajax({ 252 type: 'GET', 253 url: '/portal-ajax/json/portalurls.json', 254 data: {}, 255 success: function(json){ 256 for (var i=0; i<json.nodesarray.length;i++){ 257 var node = json.nodesarray[i]; 258 var group = '<optgroup title="" label="'+node.nodename+'">'; 259 for (var j=0; j<node.apps.length; j++) 260 group += '<option value="'+node.apps[j].appurl+'">'+node.apps[j].appname+'</option>'; 261 group +='</optgroup>' 262 $('#portal-select').append(group); 263 } 264 $('#portal-select').chosen({no_results_text: "ÐÐµÑ Ñовпадений"}); 265 $('#portal-select').change(function(){ 266 if ($(this).val()!="") 267 window.open($(this).val()); 268 }); 269 }, 270 dataType: 'json' 271 }); 272} 273}); 274}catch(e){ 275} 276 277try{ 278 $('.marquee-archive-select').change(function(){ 279 var resource = $(this).val(); 280 if (resource != '') 281 window.open('/dataview/viewresource?resourceId='+$(this).val()); 282 }); 283}catch(e){ 284} 285 286try{ 287 $('.portlet-titlebar-title:contains("OceanViewerPortlet")').each(function(){ 288 $(this).html('ÐнÑеÑакÑÐ¸Ð²Ð½Ð°Ñ ÐºÐ°ÑÑа'); 289 }); 290}catch(e){ 291} 292 293try{ 294 $('#main-right .portlet-titlebar-title').first().each(function(){
295 if(document.URL.indexOf('arm-amur')>0) 296 $(this).html('ÐовоÑÑи пÑоекÑа'); 297 else if($(this).text().indexOf('_') != -1) 298 $(this).html(''); 299 else 300 $(this).html('ÐовоÑÑи ÐСÐÐÐ'); 301 //$(this).html('ÐоÑледние поÑÑÑÐ¿Ð»ÐµÐ½Ð¸Ñ Ð´Ð°Ð½Ð½ÑÑ '); 302 }); 303 $('#main-right .portlet-titlebar-title').last().each(function(){ 304 $(this).html('ÐоÑледние поÑÑÑÐ¿Ð»ÐµÐ½Ð¸Ñ Ð´Ð°Ð½Ð½ÑÑ '); 305 }); 306}catch(e){ 307} 308 309try{ 310 if (window.location.pathname.indexOf('portal/auth/configure')>0){ 311 $('a[id^="portlet-instance-link"]').each(function(){ 312 if ($(this).text().indexOf('[ÐÐ Ð]')==-1) 313 $(this).parent().parent().parent().css('display','none'); 314 }); 315 $('option[value="cms"]').remove(); 316 $('option[value="esimo-nfr"]').remove(); 317 $('option[value="renaissance"]').remove(); 318 $('option[value="generic"]').remove(); 319 $('option[value=""]:contains("default")').remove(); 320 $('option[value="РазмеÑка главной ÑÑÑаниÑÑ"]').remove(); 321 $('div.portlet-area-body table tbody tr td:contains("опÑеделиÑе название Ð´Ð»Ñ Ð¾ÐºÐ½Ð° ÑодеÑжаниÑ")').css('visibility','hidden').css('height','0px'); 322 $('form:contains("вÑбеÑиÑе ÑодеÑжание, коÑоÑое бÑÐ´ÐµÑ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¾ на ÑÑÑаниÑе:")').css('visibility','hidden').css('height','0px'); 323 $('div#bilto').css('float','left').css('margin','0px'); 324 $('input[value="добавиÑÑ"]').addClass('portlet-icon icon-plus').css('padding','5px 5px 5px 26px'); 325 $('input[value="ÑдалиÑÑ"]').addClass('portlet-icon icon-minus').css('padding','5px 5px 5px 26px'); 326 $('input[value="ввеÑÑ "]').addClass('portlet-icon icon-arrow-up').css('padding','5px 5px 5px 26px'); 327 $('input[value="вниз"]').addClass('portlet-icon icon-arrow-down').css('padding','5px 5px 5px 26px'); 328 $('input[value="ÑÐ¾Ñ ÑаниÑÑ"]').addClass('portlet-icon icon-status-success').css('padding','5px 5px 5px 26px'); 329 $('input[value="вÑбÑаÑÑ"]').addClass('portlet-icon icon-status-success').css('padding','5px 5px 5px 26px'); 330 $('input[value="пеÑеименоваÑÑ"]').addClass('portlet-icon icon-status-success').css('padding','5px 5px 5px 26px'); 331 $('input[value="ÑдалиÑÑ ÑÑÑ ÑÑÑаниÑÑ"]').addClass('portlet-icon icon-status-error').css('padding','5px 5px 5px 26px'); 332 333 $('#expander-maximized').prepend('<a class="portlet-form-button portlet-icon icon-arrow-left" href="/portal/auth/dashboard" style="width:100px; margin:5px auto; display:block;">ÐеÑнÑÑÑÑÑ Ð² ÐÐ Ð</a>'); 334 } 335 if (window.location.pathname.indexOf('portal/auth/dashboard')>0){ 336 $('#dashboardnav').css('visibility','visible'); 337 $('#logoName').removeClass('logo-default').addClass('logo-arm-personal'); 338 $('#logoName').parent().attr('href','/portal/auth/dashboard'); 339 } 340}catch(e){ 341} 342 343try{ 344$('.identity-ui select option[value="portal.renaissance"]').remove(); 345$('.identity-ui select option[value="portal.esimo-nfr"]').remove(); 346}catch(e){ 347} 348 349try{ 350 if (document.URL.indexOf('portal/rgm')>0){ 351 $('#logoName').removeClass('logo-default').addClass('logo-mmsc'); 352 $('#logoName').parent().attr('href','/portal/portal/rgm'); 353 } 354 355 if (document.URL.indexOf('arm-')>=0){ 356 $.ajax({ 357 "dataType": 'json', 358 "type": 'GET', 359 "url": '/portal-ajax/json/arms.json', 360 "data": {}, 361 "timeout": 10000, 362 "success": function(json){ 363 var arms = json.armsarray; 364 for (var i = 0; i<arms.length; i++){ 365 if ((document.URL.indexOf('arm-'+arms[i].id)>0)){ 366 $('#logoName').css('background', 'url( /portal-core/themes/esimo-central/images/logos/'+arms[i].id+'.jpg ) no-repeat'); 367 if (arms[i].id != 'rgm') 368 $('#logoName').parent().attr('href','/portal/portal/arm-'+arms[i].id); 369 else 370 $('#logoName').parent().attr('href','/portal/portal/'+arms[i].id); 371 if (arms[i].id == 'amur'){ 372 $('#main-center-top').css("height","440px"); 373 $('#main-right').css("height","440px"); 374 $('#dashboardnav select').remove(); 375 $('#dashboardnav .portlet-form-button:contains("ÐÐ Ð")').remove(); 376 $('#tabsHeader li a:contains("ÐомплекÑÐ½Ð°Ñ ÐºÐ°ÑÑа")').attr('href','/portal/portal/arm-amur/ÐомплекÑÐ½Ð°Ñ ÐºÐ°ÑÑа');//?profileId=1140 377 $('span.portlet-titlebar-title:contains("Ð¡Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð¾ наблÑдаÑелÑнÑÑ ÑеÑÑÑ ")').first().each(function(){ 378 var height = $('div#content-container').height(); 379 console.log(height); 380 $('div#left').height(450); 381 stretchDivToParent($('div#left .portlet-container').last()); 382 $('div#center-bottom').height(450); 383 stretchDivToParent($('div#center-bottom .portlet-container').last()); 384 $('div#right').height(450); 385 stretchDivToParent($('div#right .portlet-container').last()); 386 }); 387 }; 388 if (arms[i].id == 'pollution'){ 389 console.log('pollution'); 390 console.log(document.URL); 391 if (document.URL.indexOf('%D0%94%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5')>0){ 392 $('div#left').height(365); 393 stretchDivToParent($('div#left .portlet-container').last()); 394 $('div#center-bottom').height(365); 395 stretchDivToParent($('div#center-bottom .portlet-container').last()); 396 $('div#right').height(365); 397 stretchDivToParent($('div#right .portlet-container').last()); 398 } 399 } 400 } 401 } 402 }, 403 "error": function(request, status, err) {} 404 }); 405 } 406}catch(e){ 407} 408 409try{ 410 if (document.URL.indexOf('portal/arm-arctic')>0){ 411 $('div#logoName.logo-default').css('width','420px'); 412 } 413}catch(e){ 414} 415 416try{ 417 if (document.URL.indexOf('portal/questions-status')>0){ 418 $('#logoName').removeClass('logo-default').addClass('logo-questions-status'); 419 $('#logoName').parent().attr('href','/portal/portal/questions-status'); 420 $('#header').css('background-image','none'); 421 $('#dashboardnav div').remove(); 422 $('#dashboardnav select').remove(); 423 $('#dashboardnav select').remove(); 424 $('#dashboardnav a.portlet-form-button').each(function(){ 425 if ($(this).attr('href') == '/portal/portal/registration/') 426 $(this).attr('href','/portal/portal/questions-status/РегиÑÑÑаÑиÑ'); 427 else if (($(this).text() == 'ÐÑ Ð¾Ð´')||($(this).text() == 'ÐÑÑ Ð¾Ð´')) 428 ; 429 else 430 $(this).remove(); 431 }); 432 } 433}catch(e){ 434} 435 436try{ 437 if (document.URL.indexOf('portal/arm-mod')>0){ 438 $('#portal-select').remove(); 439 $('#dashboardnav').append('<a href="/jslibs/documents/arm_mod_help_short.doc" id="help-info" class="portlet-form-button portlet-icon icon-help-doc" style="float:right; padding:4px 5px 4px 26px;">ÐбÑие ÑведениÑ</a>'); 440 $('#dashboardnav').append('<a href="#" id="help-global" class="portlet-form-button portlet-icon icon-question" style="float:right; padding:4px 5px 4px 26px;">ÐомоÑÑ</a>'); 441 $('#help-global').die().live('click',function(){ 442 $(this).displaySliderDialog({ 443 'img':['/portal-core/themes/esimo-central/images/help/help-img-map.png', 444 '/portal-core/themes/esimo-central/images/help/help-img-datasearch.png', 445 '/portal-core/themes/esimo-central/images/help/help-img-matrix.png', 446 '/portal-core/themes/esimo-central/images/help/help-img-mapdata.png', 447 '/portal-core/themes/esimo-central/images/help/help-img-mapcatalogue.png', 448 '/portal-core/themes/esimo-central/images/help/help-img-data.png'] 449 }); 450 }); 451 $("#tabsHeader a:contains('ÐнÑеÑакÑÐ¸Ð²Ð½Ð°Ñ ÐºÐ°ÑÑа')").parent().remove(); 452 $("#tabsHeader a:contains('_')").parent().remove(); 453 } 454}catch(e){ 455} 456 457try{ 458 //if (document.URL.indexOf('portal/arm-rndmc')>0){ 459 $("#tabsHeader a:contains('ÐÑÐ»Ð°Ñ Ð¼Ð¾Ñей РоÑÑии')").each(function(){ 460 $(this).attr('href','http://www.esimo.ru/atlas/'); 461 $(this).attr('target','_blank'); 462 }); 463 $("#tabsHeader a:contains('ÐÑÐ»Ð°Ñ Ð³Ð¸Ð´ÑологиÑеÑÐºÐ¸Ñ Ñ Ð°ÑакÑеÑиÑÑик по ЧеÑÐ½Ð¾Ð¼Ñ Ð¼Ð¾ÑÑ')").each(function(){ 464 $(this).attr('href','http://www.esimo.ru/atlas/Atlas_BS/'); 465 $(this).attr('target','_blank'); 466 }); 467 $("#tabsHeader a:contains('ÐлимаÑиÑеÑкий ÑпÑавоÑник по ÐзовÑÐºÐ¾Ð¼Ñ Ð¼Ð¾ÑÑ')").each(function(){ 468 $(this).attr('href','http://www.esimo.ru/atlas/spravochnik_azov/'); 469 $(this).attr('target','_blank'); 470 }); 471 $("#tabsHeader a:contains('ÐлимаÑиÑеÑкий ÑпÑавоÑник по ÐалÑийÑÐºÐ¾Ð¼Ñ Ð¼Ð¾ÑÑ')").each(function(){ 472 $(this).attr('href','http://www.esimo.ru/atlas/spravochnik_balt/'); 473 $(this).attr('target','_blank'); 474 }); 475 $("#tabsHeader a:contains('ÐлимаÑиÑеÑкий ÑпÑавоÑник по ÐаÑÑÐºÐ¾Ð¼Ñ Ð¼Ð¾ÑÑ')").each(function(){ 476 $(this).attr('href','http://www.esimo.ru/atlas/spravochnik_karsk/'); 477 $(this).attr('target','_blank'); 478 }); 479 $("#tabsHeader a:contains('ÐлимаÑиÑеÑкий ÑпÑавоÑник по ÐаÑпийÑÐºÐ¾Ð¼Ñ Ð¼Ð¾ÑÑ')").each(function(){ 480 $(this).attr('href','http://www.esimo.ru/atlas/spravochnik_kasp/'); 481 $(this).attr('target','_blank'); 482 }); 483 $("#tabsHeader a:contains('ÐлимаÑиÑеÑкий ÑпÑавоÑник по ЧеÑÐ½Ð¾Ð¼Ñ Ð¼Ð¾ÑÑ')").each(function(){ 484 $(this).attr('href','http://www.esimo.ru/atlas/spravochnik/'); 485 $(this).attr('target','_blank'); 486 }); 487 //} 488}catch(e){ 489} 490 491try{ 492 //if (document.URL.indexOf('portal/arm-rndmc')>0){ 493 $("li div.portlet-font-dim:contains('00:00:00')").each(function(){ 494 $(this).text($(this).text().replace('00:00:00','')); 495 }); 496 //} 497}catch(e){ 498} 499 500try{ 501 if (document.URL.indexOf('portal/stat')>0){ 502 $("#portal-search-any-input").remove(); 503 $('#tabsHeader').append('<li class="hoverOff" onmouseover="this.className=\'hoverOn\'" onmouseout="this.className=\'hoverOff\'"><a target="_blank" href="/jslibs/documents/help_stat.doc"><span class="portlet-icon icon-question">ÐомоÑÑ</span></a></li>'); 504 } 505}catch(e){ 506} 507 508try{ 509 if (document.URL.indexOf('portal/mirea')>0){ 510 $('head title').text('ÐоказаÑели ÑоÑÑоÑÐ½Ð¸Ñ Ð¾ÐºÑÑжаÑÑей ÑÑÐµÐ´Ñ ÐÐРФ'); 511 $('ul#tabsHeader li ul').each(function(){ 512 $(this).parent().children('a').css('background','url(/portal-core/themes/esimo-central/images/icons/icon-tabsheader-current.png) no-repeat 95% 40%'); 513 }); 514 $("#footer-container div.portal-copyright").html("ÐеÑÑÐ¸Ñ 1.0.0<br/>РазÑабоÑано <a href=\"http://nodc.meteo.ru/\" target=\"_blank\">ЦенÑÑом океаногÑаÑиÑеÑÐºÐ¸Ñ Ð´Ð°Ð½Ð½ÑÑ Ð¤ÐÐУ ÐÐÐÐÐÐÐ-ÐЦÐ</a>"); 515 //console.log($('span:contains{"СоÑÑоÑние СРÐÐ ÐСÐÐÐ"}')); 516 //console.log($('span:contains{"СоÑÑоÑние СРÐÐ ÐСÐÐÐ"}').parent()); 517 $('span:contains("СоÑÑоÑние СРÐÐ ÐСÐÐÐ")').parent().css('display','none'); 518 $('span:contains("ÐаÑвка на доÑÑÑп")').parent().css('display','none'); 519 $('span:contains("Ðои пÑоÑили ÑеÑÑÑÑов")').parent().css('display','none'); 520 } 521}catch(e){ 522} 523 524try{ 525 if (document.URL.indexOf('portal/arm-azrf')>
5250){ 526 $('head title').text('ÐидÑомеÑобеÑпеÑение моÑÐµÐ¿Ð»Ð°Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾ акваÑоÑии СÐÐ'); 527 $('ul#tabsHeader li:contains("ÐЯ и ЧС")').each(function(){ 528 $(this).attr('title','ÐпаÑнÑе ÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð³Ð¾Ð´Ñ Ð¸ ÑÑезвÑÑайнÑе ÑиÑÑаÑии пÑиÑодного Ñ Ð°ÑакÑеÑа'); 529 }); 530 $('ul#tabsHeader li:contains("ÐидÑомеÑÑÑÐ»Ð¾Ð²Ð¸Ñ Ð¸ ÑÑда")').each(function(){ 531 $(this).attr('title','ÐÐ·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð³Ð¸Ð´ÑомеÑеоÑологиÑеÑкой обÑÑановки в ÑÐ°Ð¹Ð¾Ð½Ð°Ñ Ð½Ð°Ñ Ð¾Ð¶Ð´ÐµÐ½Ð¸Ñ ÑÑдов в акваÑоÑии ÑевеÑнÑÑ Ð¼Ð¾Ñей по СÐÐ'); 532 }); 533 $('ul#tabsHeader li:contains("ÐÐÐ ÑÑанÑпоÑÑнÑÑ Ð¾Ð¿ÐµÑаÑий")').each(function(){ 534 $(this).attr('title','ÐидÑомеÑеоÑологиÑеÑкое и ледовое обеÑпеÑение пеÑевозки гÑÑзов и бÑкÑиÑовки ÑÑдов по ÑÐ°Ð¹Ð¾Ð½Ñ Ð¡ÐÐ'); 535 }); 536 } 537}catch(e){ 538} 539 540try{ 541 if (document.URL.indexOf('portal/arm-yan')>0){ 542 console.log('yan'); 543 if ($('a:contains("ÐаннÑе")').length){ 544 }else{ 545 $('a:contains("ÐнÑоÑмаÑÐ¸Ñ Ð¾Ð± ÐÐ Ð")').parent().after('<li onmouseover="this.className=\'hoverOn\'" onmouseout="this.className=\'hoverOff\'" class="hoverOff"><a href="/portal/auth/portal/arm-yan/data">ÐаннÑе</a></li>'+ 546 '<li onmouseover="this.className=\'hoverOn\'" onmouseout="this.className=\'hoverOff\'"><a href="/portal/auth/portal/arm-yan/map">ÐнÑеÑакÑÐ¸Ð²Ð½Ð°Ñ ÐºÐ°ÑÑа</a></li>'+ 547 '<li onmouseover="this.className=\'hoverOn\'" onmouseout="this.className=\'hoverOff\'"><a href="/portal/auth/portal/arm-yan/analytics">ÐналиÑиÑеÑкие маÑеÑиалÑ</a></li>'+ 548 '</ul></li><li onmouseover="this.className=\'hoverOn\'" onmouseout="this.className=\'hoverOff\'"><a href="/portal/auth/portal/arm-yan/help">ÐомоÑÑ</a></li>'); 549 } 550 } 551}catch(e){ 552} 553 554});
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.