https://github.com/rabidaudio/ricky-cms/tree/aa7a04af1ae0b8df5a215d22d560ba412cf55ccb/webapp
TODO make a yeoman generator
package com.rabidaudio; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.Toast; | |
import java.util.Iterator; | |
import java.util.Set; |
function capitalize(sentence){ | |
sentence.split(" ").map(function(e){ var a = e.split(""); a.unshift(a.shift().toUpperCase()); return a.join(""); }).join(" "); | |
} |
(function($){ | |
$.fn.scrollTo = function(maxTime, callback){ | |
if(typeof maxTime === "function"){ | |
callback = maxTime; | |
maxTime = 2000; | |
}else if(!maxTime){ | |
maxTime = 2000; | |
} | |
if(!callback){ | |
callback = new Function(); |
<style> | |
.avatar { | |
/* This is the size. TODO how to scale dynamically? */ | |
width: 3em; | |
padding-bottom: 3em; | |
height: 0; | |
overflow: hidden; | |
border-radius: 9999px; | |
position: relative; | |
} |
/* | |
<span class="rating"> | |
<span>Rating</span><br> | |
5<input type="radio" name="rating" id="rating_5" value="5" star="5"><label class="star" for="rating_5"></label> | |
4<input type="radio" name="rating" id="rating_4" value="4" star="4"><label class="star" for="rating_4"></label> | |
3<input type="radio" name="rating" id="rating_3" value="3" star="3"><label class="star" for="rating_3"></label> | |
2<input type="radio" name="rating" id="rating_2" value="2" star="2"><label class="star" for="rating_2"></label> | |
1<input type="radio" name="rating" id="rating_1" value="1" star="1"><label class="star" for="rating_1"></label> | |
</span> | |
*/ |
$(".user-actions-follow-button").each(function(){ if($(this).css("background-color")==="rgb(245, 248, 250)") $(this).click() }); |
<div style="position: fixed; width:1px; left: 50%; top:0; bottom: 0; background-color: black;"></div> | |
<div style="position: fixed; height:1px; left: 0; top:50%; right: 0; background-color: black;"></div> |
https://github.com/rabidaudio/ricky-cms/tree/aa7a04af1ae0b8df5a215d22d560ba412cf55ccb/webapp
TODO make a yeoman generator
/** | |
* A simple little jQuery plugin for doing draggable selections (like http://whenisgood.net/). | |
* Maybe not super performant, but it's jQuery so you already don't care. | |
* | |
* Demo: | |
* http://jsfiddle.net/qa06oab2/ | |
* | |
* Usage: | |
* $(<selector for elements>).dragHighlight(<optional name of class to add, defaults to 'selected'>); | |
* |