Skip to content

Instantly share code, notes, and snippets.

View oskarkrawczyk's full-sized avatar
🫣
That shouldn't be working but it does

Oskar Krawczyk oskarkrawczyk

🫣
That shouldn't be working but it does
View GitHub Profile
From 14992ce9ca55929dd0fc3a703f69137eb9813a98 Mon Sep 17 00:00:00 2001
From: Oskar Krawczyk <[email protected]>
Date: Thu, 29 Jan 2009 11:53:34 +0000
Subject: [PATCH] Added the theme
---
Twilight.css | 191 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 191 insertions(+), 0 deletions(-)
create mode 100644 Twilight.css
/*
Array.each_asynchronously
Description:
Works just like Array.each except runs each iteration on a specified delay.
This means that script execution will continue in between each iteration,
rather than halting until the full array has been processed.
Arguments:
- fn: (function) The function to execute on each item in the array. It is
<div class="WARNING_top">
<span class="b">JavaScript is disabled in your browser. This will degrade or remove some of the website's functionality. Try enabling JavaScript.</span>
<span class="a">JavaScript is disabled in your browser. This will degrade or remove some of the website's functionality. Try <a title="" href="https://www.google.com/adsense/support/bin/answer.py?hl=en&amp;answer=12654">enabling JavaScript</a>.</span>
</div>
@oskarkrawczyk
oskarkrawczyk / Array.equalize.js
Created May 19, 2009 19:07
Equalize dimensions of a set of elements
/* Equalizes dimensions of selected elements.
*
* els.equalize();
*
* Example:
*
* $$('.boxes').equalize('height', 'max', 20);
* $$('.boxes').equalize('width', 'min');
* $$('.boxes').equalize('height');
*
Array.implement({
first: function() {
return this[0];
},
rest: function() {
return this.slice(1, this.length);
},
drop: function(n) {
@oskarkrawczyk
oskarkrawczyk / external.js
Created June 10, 2009 15:21
Returns all links that are not on the same domain as the website is.
/* Returns all links that are not on the same domain as the website is.
*
* $$('a:external') - Automatically checks for the domain name
* $$('a:external(example.com)') - Set a custom, base domain
*
* Example:
*
* $$('a:external').each(function(popup) {
* popup.addEvent('click', function(e) {
* e.stop();
@oskarkrawczyk
oskarkrawczyk / $log.js
Created June 12, 2009 14:41
$log will not cause errors in IE
// $log will not cause errors in IE
// Author: Oskar Krawczyk (oskar dot krawczyk dot com after nouincolor)
Window.implement({
$log: function() {
if(typeof console!=='undefined' && typeof console.log !== 'undefined') {
console.log(arguments.length <= 1 ? arguments[0] : arguments);
}
}
});
// Scott Kyle (http://appden.com)
function $E(tag, props) {
if(typeof props == 'string')
props = {style: props};
if(typeof tag == 'string') {
var id = tag.match(/#([\w-]+)/);
var classes = tag.match(/(?:\.[\w-]+)+/);
tag = tag.replace(/[#.].*/, '');
props = props || {};
@oskarkrawczyk
oskarkrawczyk / nuTabs.js
Created September 8, 2009 17:06
MooTools-based, transitionified switcherification
/*
---
script: nuTabs.js
decription: nuTabs - MooTools-based, transitionified switcherification
license: MIT-style license.
authors:
- Oskar Krawczyk (http://nouincolor.com/)
requires:
core:1.2.3:
- Class.Extras
body, ul, li, p, h1, h2, h3, h4, address, ol, dd, dt, dl, fieldset, form, label, input, textarea, legend, a, a:link, img {
color: #000;
padding: 0;
margin: 0;
list-style: none;
border: none;
font-style: normal;
font-weight: normal;
font-family: Georgia, 'Times New Roman', Times, serif;
text-decoration: none;