Нет описания правки |
Нет описания правки |
||
Строка 8: | Строка 8: | ||
'<iframe width="640" height="480" src="' + |
'<iframe width="640" height="480" src="' + |
||
$('.sketchfab')[i].dataset['src'] + |
$('.sketchfab')[i].dataset['src'] + |
||
+ | $('.sketchfab')[i].dataset['params'] + |
||
− | ' frameborder="0" allowvr allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="""></iframe>'; |
||
+ | '"></iframe>'; |
||
} |
} |
||
})(this.jQuery, this.mediaWiki); |
})(this.jQuery, this.mediaWiki); |
Версия от 16:16, 16 марта 2018
/*************Вставка панорамы с Sketchfab********************/
;(function() {
if (!$('.sketchfab').length) { return; }
for (var i=0; i<$('.sketchfab').length; i++) {
$('.sketchfab')[i].innerHTML=
'<iframe width="640" height="480" src="' +
$('.sketchfab')[i].dataset['src'] +
$('.sketchfab')[i].dataset['params'] +
'"></iframe>';
}
})(this.jQuery, this.mediaWiki);
/*************Вставка панорамы с Sketchfab*end****************/