task

PAGE route/index.js

[WHAT]

  1. [ def ] 
  2. ] this is the "home" page, aka the web site controller page 
  3. ] this is related to the /views/index page 
  4. [ args ] none, 

[WHY]

  1. ]

[WHERE called from]

  1. ]

[WHEN]

  1. ]

[EXAMPLE]

[HOW-TO]

  1. ]

[REFERENCE]

  1. [2015-06-dd] index -v-001
    1. ] #
  2. ]

developer implementation

[process]

  1.  

[notes]

  1.  

[by_date]

  1. [YYYY-mm-DD]

status

[previously]

  1. [2015-06-05] NEW task
    1. x] # # - UPDATE - links to SM accounts in footer, + twitter, + g+
    2. *] icon for g+
    3. *] load home page, then use browser back, now home page is a previous verson
  2. [2015-06-05] PAGE route/index.js 
    1. ] # #
    2. x] var data races  - manully add content data
    3. *] corrected syntax error in array definition
    4. *] TRY function lookup again, still FAIL not accessing data in array from function
  3. [2015-06-05] PAGE - route/home.js(index) - function getCurrentRaceName(){
    1. ] var currentRace === app.currentRace;
    2. ] how to determine current race
    3. x] var currentRaceName
    4. x] var currentRaceID,
    5. x] define var selectionsUrl/currentRace,get from races[] using currentRaceID, pass to view
    6. x] define var rankingsUrl/currentRace, pass to view /results/race,
    7. x] define var resultsUrl/previousRace, pass to view /results/race,
    8. x] function getPreviousRaceName, getPreviousRaceID ( based on current race, string manipulation )
  4. [2015-06-05] PAGE - route/home.js -
    1. x] # # - ADD /race param to /selections/:race, /rankings, /results/
    2. ] pass in param to page
    3. ] lookup race details, for page
  5. [2015-mm-dd] -v-007-001 save as -v-prev 
    1. x] DATA - ADD - costThisRace to each driver data 
    2. x] FEILD - ADD - 'costThisRace' to driver object
  6. [2015-mm-dd] make selections  
    1. x] FIX-PRB - saveFile - no longer working, CAUSE: bad json manually added  
    2. x] 2nd version of makeSelections works, 
    3. -v-008
    4. x] ADD makeSelections functionality to createRankings2, 3-final,  [] createRankings
    5. ] pass in var filename  
  7. [2015-mm-dd] -v-007-003 
    1. x] adjust number - USE float VS int for more accurate calculations on driverCost field 
  8. [2015-mm-dd] -v-007-004 
    1. x] ADD METHOD - create-rankings-3 (write file after practice Final )

[currently]

  1. [2015-10-04] NEW task IN 
    1. ] display selections - by race 
  2. [2015-10-04] 
    1. x] ADD new module - selections2.js 
    2. ] REMOVE selections data/methods from home.js
  3. [2015-10-04]
    1. x] ADD new module - results.js 
    2. x] REMOVE selections data/methods from home.js
  4. [2015-10-05] NEW task 
    1. x] DEPrecated current version as home.js -v-010 
  5. [2015-10-05] NEW task IN PAGE-VERSIONS -v-011
    1. ] # # - home(aka index).js - 
    2. x] REMOVED selections data array
    3. x] REMOVDE greenspace 570-x = 
  6. [00:00] NEW task 
    1. ] display rankings - by race - 
    2. x] ADD CALL - raceStatusChanged(status,race),  
    3. x] ADD CALL - raceStatusChanged(status, race) ON route/home.js - apt.get
    4. x] CALL lookup race by curRace.getRaceByID(raceID)
  7. [00:00] NEW task IN PAGE-races.js
    1. ] ADD method to races() object to lookup Race by RaceID
  8. [00:00] NEW task IN PAGES-deprecated
    1. x] deprecated races-v00# 
  9. [00:00] NEW task IN PAGE view/rankings
    1. ] UPDATE PAGE view/rankings - replace menu variables with race info(id, name) with race var
  10. [00:00] NEW task IN 
    1. x] display results - by race
    2. x] call lookup Race by ID
  11. > [00:00] NEW task IN PAGE view/results
    1. x] pass in race object
    2. *] had 2 in data passed to view, first 1 was being overwritten by 2nd one
    3. x] removed mystery var x.toString()
  12. [00:00] NEW task IN PG home
    1. x] removed Teams array 
  13. [00:00] NEW task in PG home route/view
    1. x] removed passed in Teams and Drivers

[next]

  1. [00:00] NEW task IN 
    1. ] add selections - 
    2. ] add race - 
    3. ] add results -  
/*
    getSelection = function(index){
        return index;
        
    };
   
    currentSelection = {
        id: 123,
        get: function (id) {
            return selections2[id];
        },
        set: function (id) {
            this.id = id;
        }
    }
     */
***
var teams = [
     { 'id': '1', 'driverID': 147, 'driverIndex': 0 },
     { 'id': '2', 'driverID': 100, 'driverIndex': 0 },
     { 'id': '4', 'driverID': 149, 'driverIndex': 0 },
     { 'id': '5', 'driverID': 152, 'driverIndex': 0 },
     { 'id': '6', 'driverID': 160, 'driverIndex': 0 },
     { 'id': '10', 'driverID': 101, 'driverIndex': 0 },
     { 'id': '11', 'driverID': 107, 'driverIndex': 0 },
     { 'id': '13', 'driverID': 164, 'driverIndex': 0 },
     { 'id': '14', 'driverID': 108, 'driverIndex': 0 },
     { 'id': '15', 'driverID': 118, 'driverIndex': 0 },
     { 'id': '16', 'driverID': 121, 'driverIndex': 0 },
     { 'id': '17', 'driverID': 107, 'driverIndex': 0 },
     { 'id': '18', 'driverID': 143, 'driverIndex': 0 },
     { 'id': '19', 'driverID': 122, 'driverIndex': 0 },
     { 'id': '20', 'driverID': 145, 'driverIndex': 0 },
     { 'id': '21', 'driverID': 154, 'driverIndex': 0 },
     { 'id': '22', 'driverID': 109, 'driverIndex': 0 },
     { 'id': '23', 'driverID': 155, 'driverIndex': 0 },
     { 'id': '24', 'driverID': 114, 'driverIndex': 0 },
     { 'id': '26', 'driverID': 200, 'driverIndex': 0 },
     { 'id': '27', 'driverID': 151, 'driverIndex': 0 },
     { 'id': '28', 'driverID': 145, 'driverIndex': 0 },
     { 'id': '31', 'driverID': 117, 'driverIndex': 0 },
     { 'id': '32', 'driverID': 159, 'driverIndex': 0 },
     { 'id': '34', 'driverID': 163, 'driverIndex': 0 },
     { 'id': '40', 'driverID': 102, 'driverIndex': 0 },
     { 'id': '42', 'driverID': 246, 'driverIndex': 0 },
     { 'id': '43', 'driverID': 165, 'driverIndex': 0 },
     { 'id': '17', 'driverID': 148, 'driverIndex': 0 },
     { 'id': '47', 'driverID': 167, 'driverIndex': 0 },
     { 'id': '48', 'driverID': 115, 'driverIndex': 0 },
     { 'id': '55', 'driverID': 158, 'driverIndex': 0 },
     { 'id': '56', 'driverID': 119, 'driverIndex': 0 },
     { 'id': '78', 'driverID': 91, 'driverIndex': 0 },
     { 'id': '88', 'driverID': 116, 'driverIndex': 0 },
      { 'id': '?', 'driverID': 157, 'driverIndex': 0 },
     { 'id': '98', 'driverID': 157, 'driverIndex': 0 }
    ];
Details Photos Edit more

Details

ID: 5244

NAME: PAGE-route-index

DESCRIPTION: ####] - controller for index page - code to render /view for each of the links on the index page

START DATE TIME: 2015-06-05 11:39:00

EST DURATION: 01:00:00

END DATE TIME: 2015-06-05 12:39:00

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities