Skip to content

Instantly share code, notes, and snippets.

View jeffremer's full-sized avatar

Jeff Remer jeffremer

View GitHub Profile
<script src="http://cdn.widgetserver.com/syndication/subscriber/MobileLoader.js"></script><script>WBXMOBILE.loadApp('tidalmovement')</script>
@jeffremer
jeffremer / gist:812068
Created February 5, 2011 00:39
Flexible vbox layout
{
index: function(interaction) {
var panel = new Wbx.views.AbstractView({
layout: {
type: 'vbox',
align: 'stretch'
},
defaults: {
flex: 1
},
{
setup: function() {
Wbx.Dispatcher.on('after-dispatch', function(interaction) {
if(interaction.controller != this) {
this.application.toolbar.setLeftButton(
new Wbx.views.Button({
text: 'Back',
scope: this,
handler: function() {
Wbx.dispatch({
{
index: function(interaction) {
var form = new Wbx.views.form.FormPanel({
items: [
{
xtype: 'textfield',
name : 'first',
label: 'First name'
},
{
index: function(interaction) {
var form = new Wbx.views.form.FormPanel({
items: [
{
xtype: 'textfield',
name : 'first',
label: 'First name'
},
{
{
index: function(interaction) {
var form = new Wbx.views.form.FormPanel({
defaults: {
labelAlign: 'top',
labelWidth: '100%'
},
items: [
{
xtype: 'textfield',
@jeffremer
jeffremer / hidden-nodes
Created February 18, 2011 00:13
Example of relations and hidden nodes.
{
"nodeValue": [{
"nodeName": "div",
"attributes": {
"id": "main",
"class": "floatLeft",
"rel": "controller"
},
"nodeValue": [{
"attributes": {
###############################################################################
# RMC Proxy #
###############################################################################
$HTTP["host"] =~ "^(www\.teamroaringmouse|teamroaringmouse)\.com$" {
server.document-root = "/var/www/servers/teamroaringmouse.com/current/public"
proxy.server = (
"/" =>
((
"host" => "127.0.0.1", "port" => 8012
))
@jeffremer
jeffremer / Age Gate
Created February 28, 2011 19:54
Age Gate
/*
.card .x-panel-body {
text-align: center;
font-size: 24px;
line-height: 26px;
font-weight: bold;
color: rgba(0,0,0,.4);
text-shadow: rgba(255,255,255,.2) 0 1px 0;
background-color: #ccc;
@jeffremer
jeffremer / gist:862960
Created March 9, 2011 20:40
Scrolling Carousels
{
index: function(interaction) {
// Create a Carousel of Items
var carousel1 = new Wbx.views.Carousel({
defaults: {
cls: 'card'
},
height: '280',
width: '320',
items: [{