Function returns sides of element that are fully in viewport
+-----+ <- element .b-logo__image
| |
+--+-----+---+ <- viewport
| | | |
| +-----+ |
| |
+------------+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Mikhail Davydov | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 azproduction | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
/** | |
* Simple HTTP server on Dart | |
* @see http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/runtime/bin/socket_impl.dart | |
* http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/runtime/bin/socket_stream.dart | |
* | |
* Based on http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/samples/socket/SocketExample.dart | |
* @author azproduction | |
*/ | |
class HttpExample { |
/** | |
* | |
* @param {String} moduleName module name or path to file | |
*/ | |
function require(moduleName) {} | |
/** | |
* Matches in-package modules | |
* | |
* @param {RegExp} regExp |
function EventManager () { | |
this._events = {}; | |
} | |
EventManager.prototype = { | |
_event: function (type) { | |
var events = this._events[type]; | |
if (!events) { | |
events = this._events[type] = {}; |
<a href="javascript: void $.getScript('https://gist.github.com/azproduction/5092884/raw/2e2f414b04216770b05bb3d293e8efd741e91b3d/bookmarklet.js');">500px Tiles!</a> |
/** | |
* @param {String} url | |
* | |
* @return {Promise} | |
*/ | |
function httpGet(url) {/*...*/} | |
var cache = {}; | |
module.exports = function (url) { | |
// if cacne -> return |
var x = '/x/'; | |
/x/==x |
.idea/ |
Function returns sides of element that are fully in viewport
+-----+ <- element .b-logo__image
| |
+--+-----+---+ <- viewport
| | | |
| +-----+ |
| |
+------------+