Версия 12:26, 16 июля 2016 | | Версия 12:27, 16 июля 2016 |
Строка 2: | | Строка 2: |
| function addPanorama() { | | | function addPanorama() { |
| $.each($('.PanoramaViewer'), function( index, value ) { | | | $.each($('.PanoramaViewer'), function( index, value ) { |
? | alert( index + ": " + value ); | | + | 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>'); |
| }); | | | }); |
? | /*.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:27, 16 июля 2016
/* Шаблон Panorama */
function addPanorama() {
$.each($('.PanoramaViewer'), function( index, value ) {
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>');
});
}
/** ready */
$(document).ready( function(){
addPanorama();
});