mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Removed some minor logs
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| var api_key = { | ||||
|     "youtube": "xxxx", | ||||
|     "soundcloud": "", | ||||
|     "soundcloud": "xx", | ||||
| }; | ||||
|  | ||||
| try { | ||||
|   | ||||
| @@ -211,20 +211,7 @@ window.addEventListener("DOMContentLoaded", function() { | ||||
|     } | ||||
|     if(window.location.pathname == "/" && !client) { | ||||
|         if(document.querySelectorAll("script[src='https://www.youtube.com/iframe_api']").length == 1){ | ||||
|             try{ | ||||
|                 Player.onYouTubeIframeAPIReady(); | ||||
|                 //SC.Widget(Player.soundcloud_player).bind("ready", Player.soundcloudReady); | ||||
|  | ||||
|             } catch(error){ | ||||
|                 console.error(error); | ||||
|                 console.error("Seems YouTube iFrame script isn't correctly loaded. Please reload the page."); | ||||
|             } | ||||
|             try { | ||||
|                 //Player.soundcloudReady(); | ||||
|             } catch(error) { | ||||
|                 console.error(error); | ||||
|                 console.error("Seems SoundCloud script isn't correctly loaded. Please reload the page."); | ||||
|             } | ||||
|         } else { | ||||
|             tag            = document.createElement('script'); | ||||
|             tag.src        = "https://www.youtube.com/iframe_api"; | ||||
| @@ -232,10 +219,9 @@ window.addEventListener("DOMContentLoaded", function() { | ||||
|             firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | ||||
|         } | ||||
|         if(document.querySelectorAll("script[src='https://connect.soundcloud.com/sdk/sdk-3.3.0.js']").length == 1) { | ||||
|             console.log("exists"); | ||||
|  | ||||
|         } else { | ||||
|             tagSC            = document.createElement('script'); | ||||
|             console.log("not exists"); | ||||
|             if (tagSC.readyState){  //IE | ||||
|                 tagSC.onreadystatechange = function(){ | ||||
|                     if (tagSC.readyState == "loaded" || | ||||
|   | ||||
| @@ -983,12 +983,7 @@ var Player = { | ||||
|                 console.error(error); | ||||
|                 console.error("Seems YouTube iFrame script isn't correctly loaded. Please reload the page."); | ||||
|             } | ||||
|             try { | ||||
|                 Player.soundcloudReady(); | ||||
|             } catch(error) { | ||||
|                 console.error(error); | ||||
|                 console.error("Seems SoundCloud script isn't correctly loaded. Please reload the page."); | ||||
|             } | ||||
|  | ||||
|         } else { | ||||
|             tag            = document.createElement('script'); | ||||
|             tag.src        = "https://www.youtube.com/iframe_api"; | ||||
| @@ -996,10 +991,14 @@ var Player = { | ||||
|             firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | ||||
|         } | ||||
|         if(document.querySelectorAll("script[src='https://connect.soundcloud.com/sdk/sdk-3.3.0.js']").length == 1) { | ||||
|             console.log("exists"); | ||||
|             try { | ||||
|                 Player.soundcloudReady(); | ||||
|             } catch(error) { | ||||
|                 console.error(error); | ||||
|                 console.error("Seems SoundCloud script isn't correctly loaded. Please reload the page."); | ||||
|             } | ||||
|         } else { | ||||
|             tagSC            = document.createElement('script'); | ||||
|             console.log("not exists"); | ||||
|             if (tagSC.readyState){  //IE | ||||
|                 tagSC.onreadystatechange = function(){ | ||||
|                     if (tagSC.readyState == "loaded" || | ||||
|   | ||||
		Reference in New Issue
	
	Block a user