Quantcast
Channel: Questions in topic: "javascript"
Viewing all articles
Browse latest Browse all 68

Open in link in lightbox/colorbox from webgl

$
0
0
Hi, We manage to open a link in a new tab from unity through the use of jslib: var OpenWindowPlugin = { openWindow: function(link) { var url = Pointer_stringify(link); document.onmouseup = function() { window.open(url); document.onmouseup = null; } } }; mergeInto(LibraryManager.library, OpenWindowPlugin); We need to open viimeo movies in a lighbox/colorbox though, instead of a new tab. Any suggestions? we put the following instead of window.open : $.colorbox({iframe: true, href: elementURL, innerWidth: 645, innerHeight: 509}); But we get an error in the browser saying reference $ is not defined. Any helping hands on this, seamingly, easy challenge? thnx sven![alt text][1] [1]: /storage/temp/176082-image.png

Viewing all articles
Browse latest Browse all 68

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>