Версия 04:44, 17 июля 2016 | | Версия 04:45, 17 июля 2016 |
Строка 1: | | Строка 1: |
| /* Шаблон Panorama */ | | | /* Шаблон Panorama */ |
| function addPanorama() { | | | function addPanorama() { |
? | $.each($('.PanoramaViewer'), function( index, value ) { | | + | $.each($('.PanoramaViewer'), function( index, element ) { |
? | alert($(value).text()); | | + | $(element).append('<iframe width="684px" align="middle" height="380px" frameborder="0" seamless="" scrolling="no" marginheight="0" marginwidth="0" src="//content.wargaming.net/wot/community/panoramas/' + $(element).children('div.Panorama').text() + '"></iframe>'); |
? | $(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/' + $(value).children('div.Panorama').text() + '"></iframe>'); | | + | |
| }); | | | }); |
| } | | | } |
Версия 04:45, 17 июля 2016
/* Шаблон Panorama */
function addPanorama() {
$.each($('.PanoramaViewer'), function( index, element ) {
$(element).append('<iframe width="684px" align="middle" height="380px" frameborder="0" seamless="" scrolling="no" marginheight="0" marginwidth="0" src="//content.wargaming.net/wot/community/panoramas/' + $(element).children('div.Panorama').text() + '"></iframe>');
});
}
/** ready */
$(document).ready( function(){
addPanorama();
});