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