Skip to content

Instantly share code, notes, and snippets.

View roykolak's full-sized avatar

Roy Kolak roykolak

  • Detective.io
  • Chicago, IL USA
View GitHub Profile
&.offwhite-btn {
background-color: $offwhite;
color: #000;
}
&.offwhite-btn {
background-color: $offwhite;
color: #000;
&:hover {
background-color: #YOYOYO;
color: #HEYHEY;
}
}
### Keybase proof
I hereby claim:
* I am roykolak on github.
* I am roykolak (https://keybase.io/roykolak) on keybase.
* I have a public key whose fingerprint is 19D3 8BEA E463 A684 9F56 DF98 2EDA DA4F 4902 8B50
To claim this, I am signing this object:
@roykolak
roykolak / index.html
Created June 23, 2015 03:27
experiment-api.html
<ui-experiment>
<ui-variant id="control">
<h3>Control</h3>
</ui-variant>
<ui-variant id="variant1">
<h3>Variant 1</h3>
</ui-variant>
<ui-variant id="variant2">
<h3>Variant 2</h3>
</ui-variant>
@roykolak
roykolak / PopupClass.js
Created January 28, 2009 22:49
Popup class
function PopupClass(link, launch_now) {
if(link !== undefined) {
if(typeof link == "string") {
var link = $("#"+link);
}
this.href = link.attr('href');
this.title = link.attr('title');
this.properties = this.setProperties();
if(launch_now !== undefined && launch_now == true) {
return this.launch();
@roykolak
roykolak / PseudoClass.js
Created January 28, 2009 22:40
Pseudo class (for IE6)
function PseudoClass(autotarget) {
this.targets = [];
if((autotarget != undefined) && (autotarget == true)) {
this.attach(true);
}
}
PseudoClass.prototype.addTarget = function(target) {
this.targets.push(target);
return target;
}
@roykolak
roykolak / cookieJar.js
Created January 29, 2009 19:19
Cookie Manager
CookieJar = {
cookies: {},
// Pass This: { name:'cookie', value:'value', [expires:'365'], [domain:'domain'], [path:'path'], [secure:true] }
addCookie:function(newCookie) {
cookie = [];
// Build the New Cookie Array
$.each(newCookie, function(index, value) {
switch(index) {
case 'name': cookie[0] = value;
@roykolak
roykolak / simple_inheritance.js
Created January 29, 2009 17:05
Class inheritance helper
function inherit(subclass, superclass) {
var temp = function() {};
temp.prototype = superclass.prototype;
subclass.prototype = new temp();
}
@roykolak
roykolak / indexOf.js
Created January 29, 2009 19:29
indexOf for IE6
if($.browser.msie) {
if(!Array.indexOf) {
Array.prototype.indexOf = function(obj){
for(var i=0; i<this.length; i++){
if(this[i]==obj){
return i;
}
}
return -1;
}
@roykolak
roykolak / prompt_text.js
Created January 29, 2009 19:33
Prompt Text
$(':input.promptText').focus(function() {
if($(this).val() == $(this).attr('title')) {
$(this).val('');
}
});
$(':input.promptText').blur(function resetField() {
if(!$(this).val()) {
$(this).val($(this).attr('title'));
}
});