Last active
January 20, 2016 09:23
-
-
Save mops1k/899e04b46a2275d7a806 to your computer and use it in GitHub Desktop.
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 getStartPositionOnTheMiddleOfScreen = function(width = 0, height = 0) { | |
return { | |
x: window.screen.width/2-width/2, | |
y: window.screen.height/2-height/2 | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment