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 canvas; | |
var handleVal; | |
var isClicked = false; | |
//var clock; | |
// Class Definition | |
var UiHandle = function (startX, startY, width, height){ | |
this.x = startX; | |
this.y = startY; |
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 tweet = "These 5 incredible stories from the IDF are sure to leave #inspired"; | |
// turn tweet into an array | |
var words = tweet.split(" "); | |
// get half the length of the words | |
var half_length = Math.ceil(arrayName.length / 2); | |
// get the words on the left side | |
var leftSide = words.splice(0, half_length); |
NewerOlder