I hereby claim:
- I am jkatzer on github.
- I am jkatzer (https://keybase.io/jkatzer) on keybase.
- I have a public key whose fingerprint is 9FCA 230F 151D 71A5 FF4C EE98 58F8 2C22 4C5E 55E4
To claim this, I am signing this object:
TS.client.ui.slowScrollMsgsToPosition = function (v,w,x){var u=TS.model.archive_view_is_showing; | |
w=w&&!u; | |
var y; | |
if(u){TS.client.archives.msgs_are_auto_scrolling=true; | |
y=TS.client.archives.$scroller | |
}else{TS.model.ui.msgs_are_auto_scrolling=true; | |
y=TS.client.ui.$msgs_scroller_div | |
}y.stop().animate({scrollTop:v},1,function(){setTimeout(function(){if(u){TS.client.archives.msgs_are_auto_scrolling=false | |
}else{TS.model.ui.msgs_are_auto_scrolling=false | |
}},1); |
I hereby claim:
To claim this, I am signing this object:
<cfset new_phone = Replace(phone,'-','')> | |
<cfset new_phone = Replace(new_phone,' ','')> | |
<cfset new_phone = "(#left(new_phone,3)#) #mid(new_phone,4,3)#-#right(new_phone,4)#" > | |
#new_phone# |
-(void)webViewDidFinishLoad:(UIWebView *)webView { | |
NSString* backgroundColorString = [webView stringByEvaluatingJavaScriptFromString:@"document.body.style.background"]; | |
if ([backgroundColorString length] != 0) { | |
if ([backgroundColorString rangeOfString:@"rgb("].location == NSNotFound) { | |
backgroundColorString = [backgroundColorString stringByReplacingOccurrencesOfString:@"rgb(" withString:@""]; | |
backgroundColorString = [backgroundColorString stringByReplacingOccurrencesOfString:@")" withString:@""]; | |
backgroundColorString = [backgroundColorString stringByReplacingOccurrencesOfString:@" " withString:@""]; | |
NSArray* colors = [backgroundColorString componentsSeparatedByString:@","]; | |
webView.backgroundColor = [UIColor colorWithRed:[colors[0] floatValue] green:[colors[1] floatValue] blue:[colors[2] floatValue] alpha:1.0]; |
-(void)toggleScreenBrightness{ | |
if (screenBrightness != -1) { | |
[[UIScreen mainScreen] setBrightness:screenBrightness]; | |
screenBrightness = -1; | |
} else { | |
screenBrightness = [[UIScreen mainScreen] brightness]; | |
[[UIScreen mainScreen] setBrightness:1.0f]; | |
} | |
} |