Участник:Degit22:ru/common.js — различия между версиями
Версия 13:39, 27 октября 2015 Полностью удалено содержимое страницы | Версия 13:51, 8 июня 2016 | |||
Строка 1: | Строка 1: | |||
? | + | /* Шаблон Model3DViewer */ | ||
+ | function addModel3DViewer() { | |||
+ | $('.Model3DViewer2').click(function(){ | |||
+ | document.getElementById("popupContent").innerHTML = '<iframe width="'+(document.documentElement.clientWidth-150)+'px" height="'+(document.documentElement.clientHeight-150)+'px" id="Model3D" src="https://sketchfab.com/models/'+$(this).children('div.Model3D').text()+'/embed?autostart=1&preload=1&ui_infos=0" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>'; | |||
+ | $('#popupWrapper').show(); | |||
+ | $('#popupWindow').show(); | |||
+ | }); | |||
+ | } |
Версия 13:51, 8 июня 2016
/* Шаблон Model3DViewer */ function addModel3DViewer() { $('.Model3DViewer2').click(function(){ document.getElementById("popupContent").innerHTML = '<iframe width="'+(document.documentElement.clientWidth-150)+'px" height="'+(document.documentElement.clientHeight-150)+'px" id="Model3D" src="https://sketchfab.com/models/'+$(this).children('div.Model3D').text()+'/embed?autostart=1&preload=1&ui_infos=0" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>'; $('#popupWrapper').show(); $('#popupWindow').show(); }); }