Permalink
Browse files

update

  • Loading branch information...
Michieljoris committed Feb 24, 2014
1 parent 351b0de commit 60c257d0b783ed4c120237b98c2ea4231f4de807
View
@@ -1 +1 @@
-<a href=""><img ng-src="{{cachify('images/logo.jpg')}}"alt="logo" /></a>
+<a href=""><img ng-src='{{cachify("images/logo.jpg")}}'alt="logo" /></a>
View
@@ -1,5 +1,5 @@
<div class="pull-right">
- <image style="padding-left:22px;" ng-hide="hide_nrtlogo()" ng-src={{cachify("images/nrtlogoclsm.gif")}}> </image>
+ <image style="padding-left:22px;" ng-hide="hide_nrtlogo()" ng-src={{cachify("images/nrtlogoclsm.png")}}> </image>
</div>
<div class="pull-right">
<ul style="margin-left:6px; list-style-type:none;">
View
@@ -406,7 +406,7 @@ var exports = {
'documents/Individual Units enrolment electronic version.docx',
'documents/Individual Units enrolment print version.pdf',
'images/logo.jpg',
- 'images/nrtlogoclsm.gif',
+ 'images/nrtlogoclsm.png',
'images/slides/tab_about_us.jpg',
'images/slides/tab_accredited_training.jpg',
'images/slides/tab_professional_development.jpg',
@@ -450,7 +450,8 @@ var exports = {
,partials: {
ids: {
title: '<title>Firstdoor - Leaders in developing capability</title>'
- ,baseHref: '<base href="http://localhost:9001"">'
+ ,baseHref: develop_mode ? '<base href="http://localhost:9001">': '<base href="http://firstdoor.axion5.com">'
+ // ,baseHref: '<base href="http://192.168.1.184:9001">'
// ,baseHref: '<base href="/"">'
// ,image_courses: '<img class="" src="images/slides/tab_accredited_training.jpg" />'
// ,image_aboutus: '<img class="" src="images/slides/tab_about_us.jpg" />'
@@ -465,23 +466,22 @@ var exports = {
,sharethis3: '<script type="text/javascript">stLight.options({publisher: "014e0e6b-5c75-4f02-aa39-abe6833f9f4d", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>'
// ,recaptcha: '<script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>''
// ,recaptcha: '<script type="text/javascript" src="js/recaptcha_ajax.js"></script>'
- ,fragment: '<meta name="fragment" content="!">'
+ ,fragment: '<meta name="fragment" content="!"/>'
// ,firebug: '<script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js></script>"'
}
,metaBlock : {
id: 'meta',
- tags: [ { charset:'utf-8' }
- ,{ content:"IE=edge,chrome=1",
- "http-equiv":"X-UA-Compatible"
- }
- ,{ content:"First Door recognises the need and value of workplace learning and provides courses to create learning organisations with skilled mentors, leaders and managers. ",
- name:"description"
- }
- ,{ name: "viewport"
- ,content: "width=device-width, initial-scale=1, maximum-scale=1"}
- // ,{ name: "fragment"
- // ,content: "!" }
- ]
+ tags: [ //{ charset:'utf-8' },
+ { name: "fragment" ,content: "!" },
+ { content:"IE=edge,chrome=1",
+ "http-equiv":"X-UA-Compatible"
+ }
+ ,{ content:"First Door recognises the need and value of workplace learning and provides courses to create learning organisations with skilled mentors, leaders and managers. ",
+ name:"description"
+ }
+ ,{ name: "viewport"
+ ,content: "width=device-width, initial-scale=1, maximum-scale=1"}
+ ]
}
,linkBlock: {
id: 'myLinkBlock',
@@ -785,15 +785,20 @@ var exports = {
,mapping: {
head: [
'baseHref',
- 'title', 'meta', 'html/ieshim','skewer',
+ 'title', 'meta',
+
+ 'myLinkBlock',
+ 'html/ieshim','skewer',
// 'firebug',
- 'sharethis1', 'sharethis2', 'sharethis3',
+ // 'sharethis1', 'sharethis2', 'sharethis3',
// 'headJsBlock',
- 'myLinkBlock'
,'cachify'
],
- "ng:app": ['body', 'myJsBlock',
+ "ng:app": ['body',
+
+ 'sharethis1', 'sharethis2', 'sharethis3',
+ 'myJsBlock',
// '_scriptBlock'
,'html/google_analytics.html'
]
@@ -447,7 +447,7 @@ var exists = {
var greendoor = {
'home':{ heading: '',
title: 'Home',
- default: 'welcome',
+ default_ie8sucks: 'welcome', //ie8 gives error when using default as property name...
links: [
{ label: 'Welcome', route: '', scroll: true}
,{ label: 'Specialists in Early Childhood training and development', route: 'home/specialists', scroll: true}
@@ -461,7 +461,7 @@ var greendoor = {
,'pd':{
title: 'Professional development',
heading: '',
- default: 'intro',
+ default_ie8sucks: 'intro',
links: [
{ label: 'Tailored workshops', route: 'pd/intro', scroll: true}
,{ label: 'The inspired educator', route: 'pd/inspired', scroll: true}
@@ -479,7 +479,7 @@ var greendoor = {
,'aboutus': {
title: 'About us',
heading: '',
- default: 'vision'
+ default_ie8sucks: 'vision'
,links: [
// { label: 'Our company', route: 'aboutus/company', scroll: true
// }
@@ -501,7 +501,7 @@ var greendoor = {
,'resources': {
title: 'Resources',
heading: '',
- default: 'motivation'
+ default_ie8sucks: 'motivation'
,links: [
{ label: 'Motivation', route: 'resources/motivation', scroll: true
}
@@ -519,7 +519,7 @@ var greendoor = {
,'courses': {
title: 'Accredited training',
heading: '',
- default: 'intro'
+ default_ie8sucks: 'intro'
// ,subtext: "Further information on Accredited Training with First Door will become available following registration as a Registered Training Organisation"
,links: [
{ label: 'Accredited training', route: 'courses/intro',
@@ -539,7 +539,7 @@ var greendoor = {
,'enrol': {
title: 'Enrol',
heading: '',
- default: ''
+ default_ie8sucks: ''
// ,subtext: "Further information on Accredited Training with First Door will become available following registration as a Registered Training Organisation"
,links: [
{ label: 'Student handbook (pdf)', file: true, route: cachify('documents/FirstDoor_StudentHandbook.pdf'), scroll: true}
@@ -633,8 +633,8 @@ function DefaultCntl($scope, $routeParams, $location, $anchorScroll) {
$scope.page = greendoor[page] || greendoor['404'];
// console.log('$scope.page =', $scope.page);
- var section = $routeParams.section || $scope.page.default;
- // console.log('section in defaultcntl:', section);
+ var section = $routeParams.section || $scope.page.default_ie8sucks; //
+ console.log('section in defaultcntl:', section);
// document.title = 'Firstdoor: ' + page + '/' + section;
document.title = getPrettyTitle(page, section);
@@ -959,7 +959,7 @@ function HomeCntl($scope, $routeParams, $location) {
console.log(page);
$scope.page = greendoor[page] || greendoor['404'];
console.log(page, $scope.page);
- var section = $routeParams.section || $scope.page.default;
+ var section = $routeParams.section || $scope.page.default_ie8sucks;
console.log('page and section in homecntl:', page, section);
// $scope.page = greendoor[$location.$$path ] || greendoor['/home'];
@@ -62,7 +62,7 @@ function ResourcesCntl($scope, $route, $routeParams, $location) {
$scope.page = greendoor[page] || greendoor['home'];
- var section = $routeParams.section || $scope.page.default;
+ var section = $routeParams.section || $scope.page.default_ie8sucks;
console.log('section:', section);
$scope.page = greendoor[page] || greendoor['home'];
View
3 buildOnce.js → buildOnce.sh 100644 → 100755
@@ -1,3 +1,4 @@
+#!/usr/bin/env node
var builder = require('html-builder');
require('colors');
-builder.build('./build/recipe1.js');
+builder.build();
View
@@ -1 +1,2 @@
forever node_modules/html-builder/buildMonitor.js
+
View
@@ -320,4 +320,6 @@ completed by then. Please let me know if this works for you.
** 10/2/14 1.5 hour following up issues
** 11/2/14 .5 hour following up issues
** 12/2/14 .25 hour following up issues
+** 24/2/14 .5h adding event pdf doc
+,g
View
@@ -0,0 +1 @@
+nodemon node_modules/html-builder/buildMonitor.js
View
@@ -63,18 +63,18 @@ var options = {
//sent out with them and how long resources are kept in the server cache. If
//true defaults to ((m)inutes, (h)ours, (d)ays, (w)weeks, (y)ears):
// ,cache: false
- // ,cache: {
- // stamped: { expiresIn: '1y' },
- // prerender: { expiresIn: '1d'},
- // //static resources, should be served from cookieless domain:
- // // "css js jpg jpeg gif ico png bmp pict csv doc pdf pls ppt tif tiff eps swf": { expiresIn: "1d" },
- // // "midi mid ttf eot woff svg svgz webp docx xlsx xls pptx ps" : { expiresIn: "1d" },
- // //but possibly not when going through cloudflare:
- // // https://support.cloudflare.com/hc/en-us/articles/200169816-Can-I-serve-a-cookieless-domain-or-subdomain-through-CloudFlare-
- // "pdf doc docx": { expiresIn: "2h" },
- // other: { expiresIn: '0m'}
- // // cacheDir: "./cache"
- // }
+ ,cache: develop_mode ? false : {
+ stamped: { expiresIn: '1y' },
+ prerender: { expiresIn: '1d'},
+ //static resources, should be served from cookieless domain:
+ // "css js jpg jpeg gif ico png bmp pict csv doc pdf pls ppt tif tiff eps swf": { expiresIn: "1d" },
+ // "midi mid ttf eot woff svg svgz webp docx xlsx xls pptx ps" : { expiresIn: "1d" },
+ //but possibly not when going through cloudflare:
+ // https://support.cloudflare.com/hc/en-us/articles/200169816-Can-I-serve-a-cookieless-domain-or-subdomain-through-CloudFlare-
+ "pdf doc docx": { expiresIn: "2h" },
+ other: { expiresIn: '0m'}
+ // cacheDir: "./cache"
+ }
//if set to true to the server will try to remove a stamp from request paths
//before processing them. This also enables cache control for the response
@@ -12,7 +12,7 @@
<ul>
<div ng-repeat="link in page.links">
<li ng-class="isSelected(link.route)">
- <a ng-href="/{{link.route}}" target="{{link.file &amp;&amp; &apos;_self&apos; || &apos;&apos;}}">{{link.label}} </a>
+ <a ng-href="/{{link.route}}" target="{{link.file &amp;&amp; '_self' || ''}}">{{link.label}} </a>
<ul>
<li ng-class="isSelected(sublink.route)" ng-repeat="sublink in link.sub">
@@ -35,12 +35,12 @@
<div id="contents--" class="span7">
<!--partial:html/aboutus_stitch.html-->
<div scroll="" id="company"></div>
-<div ng-show="isShow(&apos;company&apos;)" id="company--">
+<div ng-show="isShow('company')" id="company--">
<!--partial:editable/aboutus/ourcompany.html-->
<h2>Our company</h2></div>
<div scroll="" id="vision"></div>
-<div ng-show="isShow(&apos;vision&apos;)" id="vision--">
+<div ng-show="isShow('vision')" id="vision--">
<!--partial:editable/aboutus/ourcompany_vision.html-->
<h2>Our vision: <em>'Leaders in developing capability'</em></h2>
<p><strong>Leaders</strong> <br> To be a leading and highly regarded training organisation within the Community Services and Management sector.</p>
@@ -49,7 +49,7 @@ <h2>Our vision: <em>'Leaders in developing capability'</em></h2>
<p><strong>Shared success<br></strong>First Door develops professional capability in our students so they can inspire, educate and support others. This culture of building success in people also benefits our stakeholders and society.</p></div>
<div scroll="" id="mission"></div>
-<div ng-show="isShow(&apos;mission&apos;)" id="mission--">
+<div ng-show="isShow('mission')" id="mission--">
<!--partial:editable/aboutus/ourcompany_mission.html-->
<h2>Mission statement</h2>
<p><strong>Our purpose and identity; who we are, what we do and why we are here</strong></p>
@@ -59,7 +59,7 @@ <h2>Mission statement</h2>
<p>We promote the need to create learning organisations for staff to learn, develop skills and capability. First Door provides courses to create leaders in learning within Early Childhood centres and businesses.</p></div>
<div scroll="" id="approach"></div>
-<div ng-show="isShow(&apos;approach&apos;)" id="approach--">
+<div ng-show="isShow('approach')" id="approach--">
<!--partial:editable/aboutus/ourcompany_approach.html-->
<h2>Our student approach</h2>
<p>We connect students to:</p>
@@ -81,7 +81,7 @@ <h2>&nbsp;</h2>
</div></div>
<div scroll="" id="values"></div>
-<div ng-show="isShow(&apos;values&apos;)" id="values--">
+<div ng-show="isShow('values')" id="values--">
<!--partial:editable/aboutus/ourcompany_values.html-->
<h2>First Door company values</h2>
<p>Our beliefs, traits and behavioural norms that guide the pursuit of the vision and mission, and those that company personnel are expected to display</p>
@@ -110,7 +110,7 @@ <h2>First Door company values</h2>
</ol></div>
<div scroll="" id="namelogo"></div>
-<div ng-show="isShow(&apos;namelogo&apos;)" id="nameandlogo--">
+<div ng-show="isShow('namelogo')" id="nameandlogo--">
<!--partial:editable/aboutus/nameandlogo.html-->
<h2>Our name and logo</h2>
<p><strong>First Door</strong> <br> The word first relates to a beginning and success, while a door symbolises opportunity. The Company name First Door was chosen to mean a new, successful beginning to provide opportunity in life.</p>
@@ -124,7 +124,7 @@ <h2>Our name and logo</h2>
<p>First Door Training and Development inspires people to seek new beginnings and growth, using knowledge and capability to open further doors of opportunity.</p></div>
<div scroll="" id="people"></div>
-<div ng-show="isShow(&apos;people&apos;)" id="people--">
+<div ng-show="isShow('people')" id="people--">
<!--partial:editable/aboutus/people.html-->
<h2>Our people</h2>
<h3><strong>Founders and Directors</strong></h3>
@@ -152,7 +152,7 @@ <h3><strong>Founders and Directors</strong></h3>
</ul></div>
<div scroll="" id="policies"></div>
-<div ng-show="isShow(&apos;policies&apos;)" id="policies--">
+<div ng-show="isShow('policies')" id="policies--">
<!--partial:html/policies.html-->
Download pdf file: <a target="_self" href="__4290a37d2b/documents/Policies and Procedures May13.pdf">Firstdoor Policies.pdf</a>
</div>
@@ -11,7 +11,7 @@
<ul>
<div ng-repeat="link in page.links">
<li ng-class="isSelected(link.route)">
- <a ng-href="/{{link.route}}" target="{{link.file &amp;&amp; &apos;_self&apos; || &apos;&apos;}}">{{link.label}} </a>
+ <a ng-href="/{{link.route}}" target="{{link.file &amp;&amp; '_self' || ''}}">{{link.label}} </a>
<ul>
<li ng-class="isSelected(sublink.route)" ng-repeat="sublink in link.sub">
@@ -34,7 +34,7 @@
<div id="contents--" class="span7">
<!--partial:html/courses_stitch.html-->
<div scroll="" id="intro"></div>
-<div ng-show="isShow(&apos;intro&apos;)">
+<div ng-show="isShow('intro')">
<div id="intro--">
<!--partial:editable/courses/intro.html-->
<h2>Nationally Recognised Training</h2>
@@ -77,7 +77,7 @@ <h3><strong>Invest in your professional growth and opportunity, and enrol now.</
</div>
<div scroll="" id="children_ecec"></div>
-<div ng-show="isShow(&apos;children_ecec&apos;)">
+<div ng-show="isShow('children_ecec')">
<div id="childrenservices--">
<!--partial:editable/courses/CHC50908_childrens_services.html-->
<h2>CHC50113 Diploma of Early Childhood Education <br>and Care</h2>
@@ -134,12 +134,12 @@ <h3>Four part course structure</h3>
</ul>
<h3>Practical experience: four days in four centres</h3>
<p>During the close of each part of the course, First Door arranges for each student to experience a day at another Early Childhood centre that is able to showcase operation relevant to the part of the course. By course completion, each student will have experienced four days in four different Early Childhood Centres.</p>
-<p><br><img ng-src="{{cachify(&apos;images/course_structure_children_services.jpg&apos;)}}" alt=""><br><br></p>
+<p><br><img ng-src="{{cachify('images/course_structure_children_services.jpg')}}" alt=""><br><br></p>
</div>
</div>
<div scroll="" id="diploma_management"></div>
-<div ng-show="isShow(&apos;diploma_management&apos;)">
+<div ng-show="isShow('diploma_management')">
<div id="diploma_management--">
<!--partial:editable/courses/BSB51107_management.html-->
<h2>BSB51107 Diploma of Management</h2>
@@ -189,7 +189,7 @@ <h3>Course structure</h3>
</div>
<div scroll="" id="certivtraining"></div>
-<div ng-show="isShow(&apos;certivtraining&apos;)">
+<div ng-show="isShow('certivtraining')">
<div id="certivtraining--">
<!--partial:editable/courses/certiv.html-->
<h2>TAE40110 Certificate IV in Training and Assessment</h2>
@@ -243,7 +243,7 @@ <h3>Course structure</h3>
</div>
<div scroll="" id="priorlearning"></div>
-<div ng-show="isShow(&apos;priorlearning&apos;)">
+<div ng-show="isShow('priorlearning')">
<div id="priorlearning--">
<!--partial:editable/courses/priorlearning.html-->
<h2>Recognition of Prior Learning</h2>
@@ -254,7 +254,7 @@ <h2>Recognition of Prior Learning</h2>
</div>
<div scroll="" id="trainingplans"></div>
-<div ng-show="isShow(&apos;trainingplans&apos;)">
+<div ng-show="isShow('trainingplans')">
<div id="trainingplans--">
<!--partial:editable/courses/trainingplans.html-->
<h2>Training Plans</h2>
@@ -270,7 +270,7 @@ <h3>Structured training plan</h3>
</div>
<div scroll="" id="studentfees"></div>
-<div ng-show="isShow(&apos;studentfees&apos;)">
+<div ng-show="isShow('studentfees')">
<div id="studentfees--">
<!--partial:editable/courses/studentfees.html-->
<h2>Student fees</h2>
@@ -11,7 +11,7 @@
<ul>
<div ng-repeat="link in page.links">
<li ng-class="isSelected(link.route)">
- <a ng-href="/{{link.route}}" target="{{link.file &amp;&amp; &apos;_self&apos; || &apos;&apos;}}">{{link.label}} </a>
+ <a ng-href="/{{link.route}}" target="{{link.file &amp;&amp; '_self' || ''}}">{{link.label}} </a>
<ul>
<li ng-class="isSelected(sublink.route)" ng-repeat="sublink in link.sub">
Oops, something went wrong.

0 comments on commit 60c257d

Please sign in to comment.