Skip to content

Instantly share code, notes, and snippets.

View erichocean's full-sized avatar

Erich Ocean erichocean

  • Xy Group Ltd
  • North Carolina
View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<style>
body {
position: absolute;
right: 100px;
height: 600px;
SC.page = SC.Page.create({
size: { width: 800, height: 600 },
marginInset: SC.View.create({
outlets: ['projectNameLabel','appProjectDirLabel','projectAppsScroller','appNameLabel','appDirLabel','appFilesScroller'],
layout: { x: 0, y: 0, width: 800, height: 600 },
projectNameLabel: SC.LabelView.create({
valueBinding: 'SC.IDE.projectController.name',
SC.AUTORESIZE_BORDERS = 'borders';
SC.AUTORESIZE_WIDTH = 'width';
SC.AUTORESIZE_RIGHT = 'right';
SC.AUTORESIZE_LEFT = 'left';
SC.AUTORESIZE_HEIGHT = 'height';
SC.AUTORESIZE_TOP = 'top';
SC.AUTORESIZE_BOTTOM = 'bottom';
SC.AUTORESIZE_WIDTH_HEIGHT = 'width+height';
SC.AUTORESIZE_WIDTH_TOP = 'width+top';
SC.AUTORESIZE_WIDTH_BOTTOM = 'width+bottom';
// ==========================================================================
// myApp.MainMenuController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)
// ==========================================================================
// myApp.MainMenuController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)
SC.page = SC.Page.create({
layoutSize: { width: 800, height: 600 }, // the size we used to position everything statically...
marginInset: SC.View.create({
outlets: ['projectNameLabel','appProjectDirLabel','projectAppsScroller','appNameLabel','appDirLabel','appFilesScroller'],
autoresize: SC.AUTORESIZE_WIDTH_HEIGHT,
layout: { x: 0, y: 0, width: 400, height: 300 },
projectNameLabel: SC.LabelView.create({
SC.AUTORESIZE_BORDERS = 'borders';
SC.AUTORESIZE_WIDTH = 'width';
SC.AUTORESIZE_RIGHT = 'right';
SC.AUTORESIZE_LEFT = 'left';
SC.AUTORESIZE_HEIGHT = 'height';
SC.AUTORESIZE_TOP = 'top';
SC.AUTORESIZE_BOTTOM = 'bottom';
SC.AUTORESIZE_WIDTH_HEIGHT = 'width+height';
SC.AUTORESIZE_WIDTH_TOP = 'width+top';
SC.AUTORESIZE_WIDTH_BOTTOM = 'width+bottom';
<% # SPROUTCORE DEFAULT INDEX TEMPLATE
# This template provide provides a basic wrapper for a SproutCore client.
# Most of the time, it will be sufficient for your own needs. However, if
# you need to create your own template, you can do so by copying this file
# into your client, naming it 'index.rhtml' and then adding the options
# :index => 'index' to your client declaration in routes.rb.
#
# See the comments in this file for more information on what you can
# change.
-%>
<!--==============================================================================
Filename: {REDBULL_DIR}/english.lproj/body.rhtml
Authors: Erich Ocean ([email protected])
Changed: $Version$
Since: $Version$
Copyright: Copyright (c) 2008 Erich Atlas Ocean All rights reserved.
License: The license terms for this client are contained in:
{REDBULL_DIR}/license.js
==============================================================================-->
isFlashVisible: NO,
_isFlashVisible: NO, // for animation
isFlashVisibleBinding: 'OI.flashController.firstMessage',
isFlashVisibleBindingDefault: SC.Binding.Bool,
isFlashVisibleObserver: function () {
if (this.isFlashVisible != this._isFlashVisible && !this._wrapperAnimation) {
this._wrapperAnimation = Animator.apply( SC.page.get('wrapper').rootElement, "top: 0px;", { duration: 200 });
}