i [[like]] castlevaniia
[[this isnt castlevania is it]]
is this [[castlevania]]
what is [[this]]
fuck\n<<playvideo mNFx28NGLfI 0 loop sound>>
fuck
window._tubular = undefined;\nwindow.jquery_url = 'https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/';\n \nvar s = document.createElement('script');\ns.src = jquery_url + 'jquery.min.js';\ns.onload = function f(){\n if (jQuery) {\n jQuery.noConflict();\n }\n}\ndocument.getElementsByTagName("head")[0].appendChild(s);\n \nif (!document.getElementById("ytjs")) {\n var tag = document.createElement('script');\n tag.src = "https://www.youtube.com/iframe_api";\n tag.id = "ytjs";\n var firstScriptTag = document.getElementsByTagName('script')[0];\n firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n} else {\n try {\n window.onYouTubeIframeAPIReady();\n } catch(e) {\n void(0);\n }\n}\n \nmacros["playvideo"]={\n handler: function(place, macroName, params, parser) {\n /* jQuery tubular plugin\n |* by Sean McCambridge\n |* http://www.seanmccambridge.com/tubular\n |* version: 1.0\n |* updated: October 1, 2012\n |* since 2010\n |* licensed under the MIT License\n |* Enjoy.\n |*\n |* Thanks,\n |* Sean */\n \n ;(function ($, window) {\n \n // test for feature support and return if failure\n \n // defaults\n var defaults = {\n ratio: 16/9, // usually either 4/3 or 16/9 -- tweak as needed\n videoId: 'ZCAnLxRvNNc', // toy robot in space is a good default, no?\n mute: true,\n repeat: true,\n width: $(window).width(),\n wrapperZIndex: 99,\n playButtonClass: 'tubular-play',\n pauseButtonClass: 'tubular-pause',\n muteButtonClass: 'tubular-mute',\n volumeUpClass: 'tubular-volume-up',\n volumeDownClass: 'tubular-volume-down',\n increaseVolumeBy: 10,\n start: 0\n };\n \n // methods\n \n var tubular = function(node, options) { // should be called on the wrapper div\n var options = $.extend({}, defaults, options),\n $body = $('body') // cache body node\n $node = $(node); // cache wrapper node\n \n // build container\n var tubularContainer = '<div id="tubular-container" style="overflow: hidden; position: fixed; z-index: -99; width: 100%; height: 100%; top: 0; left: 0"><div id="tubular-player" style="position: fixed"></div></div><div id="tubular-shield" style="width: 100%; height: 100%; z-index: -97; position: fixed; left: 0; top: 0;"></div>';\n \n // set up css prereq's, inject tubular container and set up wrapper defaults\n //$('html,body').css({'width': '100%', 'height': '100%'});\n $body.prepend(tubularContainer);\n $node.css({position: 'relative', 'z-index': options.wrapperZIndex});\n \n // set up iframe player, use global scope so YT api can talk\n window.player;\n window.onYouTubeIframeAPIReady = function() {\n player = new YT.Player('tubular-player', {\n width: options.width,\n height: Math.ceil(options.width / options.ratio),\n videoId: options.videoId,\n playerVars: {\n controls: 0,\n showinfo: 0,\n modestbranding: 1,\n rel: 0,\n wmode: 'transparent'\n },\n events: {\n 'onReady': onPlayerReady,\n 'onStateChange': onPlayerStateChange\n }\n });\n }\n \n window.onPlayerReady = function(e) {\n resize();\n if (options.mute) e.target.mute();\n e.target.seekTo(options.start);\n e.target.playVideo();\n }\n \n window.onPlayerStateChange = function(state) {\n if (state.data === 0 && options.repeat) { // video ended and repeat option is set true\n player.seekTo(options.start); // restart\n }\n }\n \n // resize handler updates width, height and offset of player after resize/init\n var resize = function() {\n var width = $(window).width(),\n pWidth, // player width, to be defined\n height = $(window).height(),\n pHeight, // player height, tbd\n $tubularPlayer = $('#tubular-player');\n \n // when screen aspect ratio differs from video, video must center and underlay one dimension\n \n if (width / options.ratio < height) { // if new video height < window height (gap underneath)\n pWidth = Math.ceil(height * options.ratio); // get new player width\n $tubularPlayer.width(pWidth).height(height).css({left: (width - pWidth) / 2, top: 0}); // player width is greater, offset left; reset top\n } else { // new video width < window width (gap to right)\n pHeight = Math.ceil(width / options.ratio); // get new player height\n $tubularPlayer.width(width).height(pHeight).css({left: 0, top: (height - pHeight) / 2}); // player height is greater, offset top; reset left\n }\n \n }\n \n // events\n $(window).on('resize.tubular', function() {\n resize();\n })\n \n $('body').on('click','.' + options.playButtonClass, function(e) { // play button\n e.preventDefault();\n player.playVideo();\n }).on('click', '.' + options.pauseButtonClass, function(e) { // pause button\n e.preventDefault();\n player.pauseVideo();\n }).on('click', '.' + options.muteButtonClass, function(e) { // mute button\n e.preventDefault();\n (player.isMuted()) ? player.unMute() : player.mute();\n }).on('click', '.' + options.volumeDownClass, function(e) { // volume down button\n e.preventDefault();\n var currentVolume = player.getVolume();\n if (currentVolume < options.increaseVolumeBy) currentVolume = options.increaseVolumeBy;\n player.setVolume(currentVolume - options.increaseVolumeBy);\n }).on('click', '.' + options.volumeUpClass, function(e) { // volume up button\n e.preventDefault();\n if (player.isMuted()) player.unMute(); // if mute is on, unmute\n var currentVolume = player.getVolume();\n if (currentVolume > 100 - options.increaseVolumeBy) currentVolume = 100 - options.increaseVolumeBy;\n player.setVolume(currentVolume + options.increaseVolumeBy);\n });\n \n if (!document.getElementById("ytjs") == false) {\n window.onYouTubeIframeAPIReady();\n }\n }\n \n // load yt iframe js api\n \n \n // create plugin\n window._tubular = window._tubular || tubular;\n \n })(jQuery, window);\n window._tubular(jQuery("body"), {videoId: params[0], start: params[1], repeat: (params[2] == "loop"), mute: (params[3] !== "sound")});\n }\n}\n \nmacros["stopvideo"] = {\n handler: function(place, macroName, params, parser) {\n jQuery("#tubular-container").remove();\n jQuery("#tubular-shield").remove();\n }\n}
i.r.i.s.