Версия 04:43, 17 июля 2016 | | Версия 04:44, 17 июля 2016 |
Строка 3: | | Строка 3: |
| $.each($('.PanoramaViewer'), function( index, value ) { | | | $.each($('.PanoramaViewer'), function( index, value ) { |
| alert($(value).text()); | | | 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>'); |
| }); | | | }); |
| } | | | } |
Версия 04:44, 17 июля 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();
});