Skip to content

Instantly share code, notes, and snippets.

// ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
// Portions ©2008-2009 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
require('system/ready');
/** Set to NO to leave the backspace key under the control of the browser.*/
// ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
// Portions ©2008-2010 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
SC.SWIPE_HORIZONTAL = "X";
SC.SWIPE_VERTICAL = "Y";
SC.SWIPE_LEFT = "LEFT";
SC.SWIPE_RIGHT = "RIGHT";
SC.TapGesture = SC.Gesture.extend({
name: "tap",
maxDistance: 10,
maxTime: 250,
unassignedTouchDidStart: function(touch) {
var status = this.statusForTouch(touch);
status.start = Date.now();
},
SC.View.extend(SC.Gesturable, {
"gestures": [SC.TapGesture, "swipe"],
"swipe": SC.SwipeGesture.extend({ direction: SC.DIRECTION_HORIZONTAL }),
tap: function() {},
swipeStart: function(){},
swipeChanged: function(){},
swipeEnd: function(){}
})
// ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
// Portions ©2008-2009 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
require('system/ready');
/** Set to NO to leave the backspace key under the control of the browser.*/
// ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
// Portions ©2008-2009 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
/**
@namespace
Views that mix in SC.Buildable can be used by other views that mix in SC.BuildChildren;
SC.NavigationView.design({
});
myNavigationView.push(SC.View.create({
navigationBar: SC.NavigationBar.design({
childViews: "left title stay".w(),
left: SC.ButtonView.design({
shouldAnimate: YES,
isSwipeLeftButton: YES
<!-- WOULD THIS PROPOSAL FOR "CLOSED APP" MODE HTML5 AUDIO WORK? -->
<audio id = "my_audio" src="my_audio.mp3" autoplay responder="responder.js"></audio>
<script>
var audio = document.getElementById("my_audio");
audio.state.userName = "Alex";
</script>

Hoo will work in two phases:

  • Article generation, which processes all .md documents.
    • Generates .html. Not very interesting.
    • Generates .json. Highly interesting. Finds all resources or potential resources and adds them to the "resources" collection. This includes images and demos.
  • Guide generation.
    • Finds all articles, loading all JSON article files.
  • Creates one resources list.
  1. Incremental Hoo Doc Structure
    • Creating Doc Bundles, which are folders that are downloadable.
    • I PLAN THIS TONIGHT! (I will not, however, state when "tonight" is, so if you read this tomorrow, it will be tomorrow night)
  2. Hedwig connecting to above
    • Ability to download guides into local storage.
    • Ability to update guides.
  3. General Hedwig Cleanup
    • Mostly addressed by above, but there is other cleanup.
  4. Bonus (if I have any spare time): Hedwig+Actions