This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @theme ibm-carbon */ | |
@import "default"; | |
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap"); | |
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap"); | |
:root { | |
position: relative; | |
background: #161616; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBOutlet weak var tableView: UITableView! | |
@IBOutlet weak var tableViewHeightConstraint: NSLayoutConstraint! | |
var tableViewCell: UITableViewCell = tableView.cellForRowAtIndexPath(NSIndexPath(forRow: 0, inSection: 0)) | |
var cellHeight: CGFloat = tableViewCell?.frame.height | |
var dataSource: [AnyObject]? | |
tableViewHeightConstraint.constant = calculateTableViewHeight(cellHeight, dataSource.count) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func calculateTableViewHeight(cellHeight: CGFloat, numberOfRows: Int) -> CGFloat { | |
var tableViewHeight: CGFloat = 0.0 | |
tableViewHeight = cellHeight * numberOfRows | |
return tableViewHeight | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var theMP3; | |
var currentSong = 0; | |
var tracks = ["1","2","3","4","5"]; | |
var id3s=[]; | |
$jScroller.add("#scroller_container","#scroller","left",2); | |
$jScroller.cache.init = true; // Turn off default Event | |
$jScroller.config.refresh = 100; | |
$( "#progressbar" ).progressbar({ | |
value: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ctx; | |
var count = 0; | |
var x; | |
var y; | |
var img = new Image(); | |
img.src = "sprite_sheet.png"; | |
img.onload = draw; | |
function draw() { | |
requestAnimationFrame(draw); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init() { | |
video = document.getElementById('video'); | |
video.volume = 0; | |
var progressSpan = document.getElementById('progress-span'); | |
var progressSlider = document.getElementById('progress-slider'); | |
progressSlider.max = video.duration; | |
progressSlider.onchange = function() { | |
video.currentTime = progressSlider.value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function disableSelection(target){ | |
if (typeof target.onselectstart!="undefined") // if IE | |
target.onselectstart=function(){return false} | |
else if (typeof target.style.MozUserSelect!="undefined") // if Firefox | |
target.style.MozUserSelect="none"; | |
else // others | |
target.onmousedown=function(){return false; | |
} | |
} |
NewerOlder