mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Template/Update (Part 47)
* split global.js into its components, so it can be reasonably processed by setup * make reputation requirements configurable * move Markup and Locale back into global.js (removed associated build scripts) * extend Icon to display iconId in lightbox popup
This commit is contained in:
10
setup/tools/filegen/templates/global.js/positioning.js
Normal file
10
setup/tools/filegen/templates/global.js/positioning.js
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Global utility functions related to positioning
|
||||
*/
|
||||
|
||||
function g_getViewport()
|
||||
{
|
||||
var win = $(window);
|
||||
|
||||
return new Rectangle(win.scrollLeft(), win.scrollTop(), win.width(), win.height());
|
||||
}
|
||||
Reference in New Issue
Block a user