This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cx = oo.canvas().width/2; | |
var cy = oo.canvas().height/2; | |
var img_w = 271; | |
var img_h = 365; | |
var img = oo.image({src:'./img/face_271x365.png', | |
x:cx - img_w/2, | |
y:cy - img_h/2, | |
axis:{x:img_w/2, | |
y:img_h/2, | |
coord:'local', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#selector { | |
text-shadow: transparent 0 0 1px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Convert a string to a function call that puts together that string form character codes. | |
* Useful when you are trying to avoid using quotation characters in JavaScript (because they | |
* are being escaped) but you still want to use a string. | |
* | |
* @author Timothy Armstrong | |
* @param str String The string you want to convert | |
* @return String The JavaScript code that can replace your string | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var i = window.setInterval(function() { | |
var closeButton = document.querySelector('.pl-video-edit-remove'); | |
if (closeButton) { | |
closeButton.click(); | |
} else { | |
window.clearInterval(i); | |
} | |
}, 500); | |
})(); |