Добро пожаловать на Lesta Games Wiki!

Участник:Degit22:ru/common.js — различия между версиями

Перейти к: навигация, поиск
Версия 13:51, 8 июня 2016Версия 13:55, 8 июня 2016
Строка 1:Строка 1:
 /* Шаблон Model3DViewer */ /* Шаблон Model3DViewer */
 function addModel3DViewer() { function addModel3DViewer() {
? $('.Model3DViewer2').click(function(){+ $('.Model3DViewer').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&amp;preload=1&amp;ui_infos=0" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';  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&amp;preload=1&amp;ui_infos=0" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
  $('#popupWrapper').show();  $('#popupWrapper').show();

Версия 13:55, 8 июня 2016

/* Шаблон Model3DViewer */
function addModel3DViewer() {
  $('.Model3DViewer').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&amp;preload=1&amp;ui_infos=0" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
    $('#popupWrapper').show();
    $('#popupWindow').show();
  });
}