Skip to content

Instantly share code, notes, and snippets.

View PhilipBale's full-sized avatar

Philip Bale PhilipBale

View GitHub Profile
@PhilipBale
PhilipBale / Form
Created August 26, 2015 14:05
Form descprition
@interface CreateEventViewController ()
@property(nonatomic, strong) FORMDataSource *sourceData;
@end
@implementation CreateEventViewController
- (FORMDataSource *)dataSource {
if (_sourceData) return _sourceData;
<script type="text/javascript">
$(function() {
$('select').selectToUISlider({ labels: 0, labelSrc: 'text', tooltip: false, sliderOptions: {
animate:true,
stop: function(e,ui) {
index = $('select').val();
var slideHandle = $('#handle-gradient');
if (index == 0) {
slideHandle.css({background: "linear-gradient(to right, rgba(229,124,106,1.0), rgba(229,124,106,0))", width: "50%", left: "99%"});
} else if (index == 4) {