Добро пожаловать на Lesta Games Wiki!

Участник:Degit22:ru/common.js — различия между версиями

Перейти к: навигация, поиск
Версия 12:18, 16 июля 2016Версия 12:26, 16 июля 2016
Строка 1:Строка 1:
 /* Шаблон Panorama */ /* Шаблон Panorama */
 function addPanorama() { function addPanorama() {
? $('.PanoramaViewer').append('<iframe width="684px" align="middle" height="380px" frameborder="0" seamless="" scrolling="no" marginheight="0" marginwidth="0" src="//content.wargaming.net/wot/community/panoramas/'+$(this).children('div.Panorama').text()+'"></iframe>');+ $.each($('.PanoramaViewer'), function( index, value ) {
 + alert( index + ": " + value );
 + });
 + /*.append('<iframe width="684px" align="middle" height="380px" frameborder="0" seamless="" scrolling="no" marginheight="0" marginwidth="0" src="//content.wargaming.net/wot/community/panoramas/'+$(this).children('div.Panorama').text()+'"></iframe>');*/
 } }
  

Версия 12:26, 16 июля 2016

/* Шаблон Panorama */
function addPanorama() {
  $.each($('.PanoramaViewer'), function( index, value ) {
    alert( index + ": " + value );
  });
  /*.append('<iframe width="684px" align="middle" height="380px" frameborder="0" seamless="" scrolling="no" marginheight="0" marginwidth="0" src="//content.wargaming.net/wot/community/panoramas/'+$(this).children('div.Panorama').text()+'"></iframe>');*/
}

/** ready */
$(document).ready( function(){
  addPanorama();
});