/*access denied html*/
function loadJScript(url, callback) {
var script = document.createElement("script")
script.type = "text/javascript";
if (script.readyState) { //IE
script.onreadystatechange = function () {
if (script.readyState == "loaded" || script.readyState == "complete") {
script.onreadystatechange = null;
callback();
}
};
} else { //Others
script.onload = function () {
callback();
};
}
script.src = url;
document.getElementsByTagName("head")[0].appendChild(script);
}
var access_denied = "
";
if (access_denied != '' && document.getElementById("webstream_embed_code") == null) {
var div = document.createElement('div');
div.id = "webstream_embed_code";
div.innerHTML = access_denied;
var scripts = document.getElementsByTagName("script");
for(var i = 0, l = scripts.length; i < l; i++){
if(scripts[i].src.indexOf('get-code') > 0){
if(document.getElementById("myIframe") == null) {
var parent = scripts[i].parentElement;
parent.insertBefore(div, scripts[i].nextSibling);
break;
}
}
}
var t = document.createElement("link");
t.setAttribute("rel", "stylesheet");
t.setAttribute("type", "text/css");
t.setAttribute("href", "https://dentalpatiented.com/public/css/webstream.css");
document.getElementsByTagName("head")[0].appendChild(t);
throw new Error('This is not an error. This is just to abort javascript');
}
//var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
var issafari = !!navigator.userAgent.match(/safari/i) &&
!navigator.userAgent.match(/chrome/i) &&
typeof document.body.style.webkitFilter !== "undefined";
//console.log(issafari);
// At least Safari 3+: "[object HTMLElementConstructor]"
/* without iframe code for safari */
/*
if(issafari){
console.log('safari');
loadFile('js',"//fast.wistia.com/assets/external/E-v1.js", 'ISO-8859-1');
loadFile('js',"https://dentalpatiented.com/application/themes/clients/bitebankv2/scripts/manage_webstream/jquery.min.js", "UTF-8");
loadFile('css',"https://dentalpatiented.com/public/css/webstream.css", "UTF-8");
var div = document.createElement('div');
div.id = "webstream_embed_code";
div.innerHTML = '';
var scripts = document.getElementsByTagName("script");
for(var i = 0, l = scripts.length; i < l; i++){
if(scripts[i].src.indexOf('get-code') > 0){
if(document.getElementById("myIframe") == null) {
var parent = scripts[i].parentElement;
parent.insertBefore(div, scripts[i].nextSibling);
break;
}
}
}
document.getElementById("main_css").href = "";
document.getElementById("color_css").href = "";
var video_list = JSON.parse('');
var cat_list = JSON.parse('');
var splash_page = '';
var url = "https://dentalpatiented.com/embed/check-user/";
var all_cat_title = 'All ';
if(typeof jQuery == undefined) {
loadJScript("https://dentalpatiented.com/application/themes/clients/bitebankv2/scripts/manage_webstream/jquery.min.js", function () {
check();
});
} else {
check();
}
function loadFile(type,e, charset, callback)
{
if(type=='js')
{
var t=document.createElement("script");
t.setAttribute("type","text/javascript");
t.setAttribute("charset",charset);
t.setAttribute("src",e);
if (t.readyState) { //IE
t.onreadystatechange = function () {
if (t.readyState == "loaded" || t.readyState == "complete") {
t.onreadystatechange = null;
callback();
}
};
} else { //Others
t.onload = function () {
callback();
};
}
}
else if(type=='css')
{
var t=document.createElement("link");
t.setAttribute("rel","stylesheet");
t.setAttribute("type","text/css");
t.setAttribute("href",e);
}
document.getElementsByTagName("head")[0].appendChild(t);
}
function check()
{
var d = new Date();
$.getScript(["//fast.wistia.com/assets/external/E-v1.js"], function() {
if(typeof jQuery != undefined)
{
loadFile('js',"https://dentalpatiented.com/public/scripts/webstream-publish.js?"+d.getTime(), "UTF-8");
}
else{
setTimeout(check(),1000);
}
});
}
} else { */
/* without iframe code for safari */
var width = "";
var height = "";
var current_layout = "";
var iframe = document.createElement('iframe');
iframe.id = "myIframe";
// iframe.width = width;
// iframe.height = height;
iframe.width = "100%";
var frameStyle = "height:"+height+"px!important";
if(current_layout == 3){
var get_screen_width = window.screen.width;
if(get_screen_width > 767){
iframe.height = height;
iframe.style=frameStyle;
}else{
iframe.height = "700px";
}
}else{
iframe.height = height;
iframe.style=frameStyle;
}
iframe.frameBorder = 0;
iframe.scrolling = "no";
iframe.srcdoc = '';
var scripts = document.getElementsByTagName("script");
for(var i = 0, l = scripts.length; i < l; i++){
if(scripts[i].src.indexOf('get-code') > 0){
if(document.getElementById("myIframe") == null) {
var parent = scripts[i].parentElement;
parent.insertBefore(iframe, scripts[i].nextSibling);
break;
}
}
}
var iframe = document.getElementById("myIframe");
var video_list = JSON.parse('');
var cat_list = JSON.parse('');
var splash_page = '';
var url = "https://dentalpatiented.com/embed/check-user/";
var all_cat_title = 'All ';
window.myFunction = function() {
//loadFile('js',"//fast.wistia.com/assets/external/E-v1.js", 'ISO-8859-1');
loadFile('js',"https://dentalpatiented.com/application/themes/clients/bitebankv2/scripts/manage_webstream/jquery.min.js", "UTF-8");
loadFile('css',"https://dentalpatiented.com/public/css/webstream.css", "UTF-8");
if(typeof jQuery == undefined) {
loadJScript("https://dentalpatiented.com/application/themes/clients/bitebankv2/scripts/manage_webstream/jquery.min.js", function () {
check();
});
}else {
check();
}
iframe.contentWindow.document.write('');
iframe.contentWindow.document.write('');
iframe.contentWindow.document.getElementById("main_css").href = "";
iframe.contentWindow.document.getElementById("color_css").href = "";
iframe.contentWindow.document.write('');
// iframe.contentWindow.document.getElementById("ws_custome").href = "//dentalpatiented.com/public/css/ws-custome.css";
//iframe.contentWindow.document.write('');
function loadFile(type,e, charset)
{
if(type=='js')
{
var t=iframe.contentWindow.document.createElement("script");
t.setAttribute("type","text/javascript");
t.setAttribute("charset",charset);
t.setAttribute("src",e);
}
else if(type=='css')
{
var t=iframe.contentWindow.document.createElement("link");
t.setAttribute("rel","stylesheet");
t.setAttribute("type","text/css");
t.setAttribute("href",e);
}
iframe.contentWindow.document.getElementsByTagName("head")[0].appendChild(t);
}
function check()
{
var d = new Date();
//$.getScript(["//fast.wistia.com/assets/external/E-v1.js"], function() {
if(typeof jQuery != undefined)
{
loadFile('js',"https://dentalpatiented.com/public/scripts/webstream-publish.js?"+d.getTime(), "UTF-8");
}
else{
setTimeout(check(),1000);
}
//});
}
}
iframe.contentWindow.document.write("");
iframe.contentWindow.document.write("");
iframe.contentWindow.document.write("");
iframe.contentDocument.close();
/* } */