From 7810e3bf9821921aede98e258f7156a6522d7d06 Mon Sep 17 00:00:00 2001 From: Eastae Date: Sat, 15 Aug 2015 19:18:45 -0700 Subject: [PATCH 01/14] Created a front end thing --- app/views/index.erb | 481 +++++++++++++++++++++++++++++++++++++++++++ app/views/index.html | 61 ++++++ app/views/main.css | 33 +++ app/views/test.json | 21 ++ 4 files changed, 596 insertions(+) create mode 100644 app/views/index.erb create mode 100644 app/views/index.html create mode 100644 app/views/main.css create mode 100644 app/views/test.json diff --git a/app/views/index.erb b/app/views/index.erb new file mode 100644 index 0000000..9dc9284 --- /dev/null +++ b/app/views/index.erb @@ -0,0 +1,481 @@ +Keith + + + +Drive +My Drive +NEW +Folders and views +My Drive +Shared with me +Google Photos +Recent +Starred +Trash +Name +Owner +Last modified +File size +Website +me +10:10 am +— +Sharedpics +me +Jun 29, 2015 +— +Final +me +May 29, 2015 +— +CIS 254 +me +May 24, 2015 +— +assign8 +me +May 21, 2015 +— +Shit +me +Apr 27, 2015 +— +Work +me +Mar 27, 2015 +— +Shapes +me +Mar 4, 2015 +— +Testfield +me +Feb 18, 2015 +— +Shared Resume +me +Feb 18, 2015 +— +IntegerSet +me +Feb 18, 2015 +— +assign2 +me +Feb 16, 2015 +— +CIS 114 +me +Feb 16, 2015 +— +.recommenders +me +Feb 12, 2015 +— +Rectangle +me +Feb 12, 2015 +— +Old +me +Feb 12, 2015 +— +.metadata +me +Feb 12, 2015 +— +Star Ronin +me +Feb 12, 2015 +— +Modern JavaScript Develop and Design - MG +me +Feb 5, 2015 +— +workspace +me +Jan 30, 2015 +— + +Iron Ghost.xlsm +me +Aug 8, 2015 +758 KB + +Soldier Tracker +me +Jul 1, 2015 +— + +SAM_2013_Getting_Started_Guide_Student_UPDATE.ppt +me +Jun 19, 2015 +6 MB + +Untitled document +me +Jun 16, 2015 +— + +060515 061315 Voucher doubles.pdf +me +Jun 7, 2015 +144 KB + +Final.zip +me +May 29, 2015 +88 KB + +assign8.zip +me +May 21, 2015 +568 KB + +document.pdf +me +Apr 23, 2015 +114 KB + +Durrius 2.0.pdf +me +Apr 4, 2015 +570 KB + +beefs.chum5 +me +Mar 31, 2015 +172 KB + +InternshipResume.docx +me +Mar 20, 2015 +21 KB + +ModernJSDD_CH07.pps +me +Mar 5, 2015 +433 KB + +Tracking.xlsx +me +Mar 5, 2015 +9 KB + +HoRNDIS-rel6.pkg +me +Mar 4, 2015 +114 KB + +10422980_1586144684958992_5126079436672262081_n.jpg +me +Mar 3, 2015 +33 KB + +nakasi-ktu84p-factory-76acdbe9.tgz +me +Feb 25, 2015 +363 MB + +InternshipResume.docx +me +Feb 20, 2015 +20 KB + +Cover Letter.docx +me +Feb 20, 2015 +14 KB + +assign2.zip +me +Feb 16, 2015 +163 KB + +Project2Files.zip +me +Feb 12, 2015 +4 KB + +Paul Deitel , Harvey Deitel - Java How To Program, 10th Edition (Early Objects).pdf +me +Jan 24, 2015 +15 MB +My Drive +Details +Activity +TODAY + +Youuploaded 2 items +10:10 AM +Style Sheet +main.css +HTML +index.html + +Youcreated an item in +10:10 AM +Google Drive Folder +My Drive +Google Drive Folder +Website +YESTERDAY + +Julia Ladutkoedited an item +Computer • Fri 10:38 PM +Image +IMG_2008.JPG + +Julia Ladutkoedited an item +Computer • Fri 10:38 PM +Image +IMG_2009.JPG + +Julia Ladutkoedited an item +Computer • Fri 10:38 PM +Image +IMG_2006.JPG + +Julia Ladutkoedited an item +Computer • Fri 10:38 PM +Image +IMG_2005.JPG + +Julia Ladutkoedited an item +Computer • Fri 10:38 PM +Image +IMG_2007.JPG + +Julia Ladutkoedited an item +Computer • Fri 10:37 PM +Image +IMG_2003.JPG + +Julia Ladutkoedited an item +Computer • Fri 10:37 PM +Image +IMG_2002.JPG + +Julia Ladutkoedited an item +Computer • Fri 10:37 PM +Image +IMG_2004.JPG +LAST WEEK + +Youuploaded an item +Aug 8 +Excel +Iron Ghost.xlsm +L +LEIGH DUGGANadded 25 items to +Aug 5 +Google Drive Folder +Sharedpics +Image +IMG_2167.JPG +Image +IMG_2176.JPG +Image +IMG_2183.JPG +Image +IMG_2163.JPG +Image +IMG_2007.JPG +Image +IMG_2172.JPG +Show all... +LAST MONTH + +Youedited an item +Jul 1 +Google Sheets +Soldier Tracker + +Youshared an item +Jul 1 +Excel +Tracking.xlsx +Can view +Anyone with the link + +Youshared an item +Jul 1 +Google Sheets +Soldier Tracker +G +Can comment +Glen Naftaniel + +Youcreated and shared an item in +Jul 1 +Google Drive Folder +My Drive +Google Sheets +Soldier Tracker +Can comment +Anyone with the link +EARLIER THIS YEAR + +Julia Ladutkocreated and shared 122 items in +Computer • Jun 30 +Google Drive Folder +Sharedpics +Image +IMG_20150628_142746.jpg +Image +IMG_20150628_143439.jpg +Image +IMG_20150628_130753.jpg +Image +IMG_20150628_143436.jpg +Image +IMG_20150628_142815.jpg +Image +IMG_20150628_130750.jpg +Show all... +L +Can edit +LEIGH DUGGAN +Can edit +Anyone with the link + +Can edit +You + +Youcreated and shared 18 items in +Mobile • Jun 30 +Google Drive Folder +Sharedpics +Image +IMG_20150626_154636.jpg +Image +IMG_20150626_154705.jpg +Image +IMG_20150626_154634.jpg +Image +IMG_20150620_195640.jpg +Image +IMG_20150628_115203.jpg +Image +IMG_20150626_155332.jpg +Show all... +L +Can edit +LEIGH DUGGAN +Can edit +Anyone with the link + +Youcreated and shared an item in +Mobile • Jun 29 +Google Drive Folder +My Drive +Google Drive Folder +Sharedpics +L +Can edit +LEIGH DUGGAN +Can edit +Anyone with the link + +Youuploaded an item +Jun 19 +PowerPoint +SAM_2013_Getting_Started_Guide_Student_UPDATE.ppt +Get Drive for PC +3 GB used (22%) +Buy more storage + +index.html +Open with + + + + + + + + + + + + + + +
+
+

Welcome to Eastman.

+

The most adequate web developer you've ever seen.

+ Learn More +
+
+
+ +
+
+

Neighborhood Guides

+

Not sure where to stay? We've created neighborhood guides for cities all around the world'

+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+
+

Travel

+

From apartments and rooms to treehouses and boats: stay in unique spaces in 192 countries.

+

See how to travel on Airbnb

+
+
+

Host

+

Renting out your unused space could pay your bills or fund your next vacation.

+

Learn more about hosting

+
+
+

Trust and Safety

+

From Verified ID to our worldwide customer support team, we've got your back.

+

Learn about trust at Airbnb

+
+
+
+
+ + \ No newline at end of file diff --git a/app/views/index.html b/app/views/index.html new file mode 100644 index 0000000..8b9cc58 --- /dev/null +++ b/app/views/index.html @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + +
+
+

Results for $query

+
+
+
+
+
+
    + + +
      +
    • Resource 1
    • +
      10
      + + + + + + + +
    • Author
    • +
      + +

      Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Sure would be rad if you read the rest of this resource...

      + Read More +
    +
    +
    + + \ No newline at end of file diff --git a/app/views/main.css b/app/views/main.css new file mode 100644 index 0000000..b3a7dbf --- /dev/null +++ b/app/views/main.css @@ -0,0 +1,33 @@ +.glyphicon-thumbs-up{ + color: green; +} + +.glyphicon-thumbs-down{ + color: red; +} + +.tally{ + color: #8AB800; + margin-bottom: 0px; + font-size: 20pt; +} + +.thumb{ + position: relative; + margin-bottom: 10px; + padding-top: 0px; +} + +.title { + display: inline; + color: black; + font-size: 30px; + padding-top: 5 px; +} + +ul{ + list-style-type: none; +} +.authorName{ + font-size: 18px; +} diff --git a/app/views/test.json b/app/views/test.json new file mode 100644 index 0000000..e16afbb --- /dev/null +++ b/app/views/test.json @@ -0,0 +1,21 @@ +[ + +{ +"title": "title1", +"description": "description1", +"author": "Raplph author", +"votes": 10 +}, +{ +"title": "title2", +"description": "description2", +"author": "Raplph author", +"votes": 10 +}, +{ +"title": "title3", +"description": "description3", +"author": "Raplph author", +"votes": 10 +} +] \ No newline at end of file From 07b44102e10f7fea9654f06f30f928042d1e9791 Mon Sep 17 00:00:00 2001 From: Eastae Date: Sat, 15 Aug 2015 19:29:37 -0700 Subject: [PATCH 02/14] Updating things .slice(255) is probably bad code --- app/views/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/index.html b/app/views/index.html index 8b9cc58..1252734 100644 --- a/app/views/index.html +++ b/app/views/index.html @@ -33,7 +33,7 @@

    Results for $query

    $(document).ready(function() { $.getJSON( "test.json", function( data ) { $.each( data, function( key, val ) { - $('#list').append("
  • " + val.title +"
    "+ val.description+"
  • " ); + $('#list').append("
  • " + val.title +"
    "+ val.description.slice(255)+"
  • " ); }); }); }); From 3681f9b039826e9e4a6fcc56a8295b9fdcdb9020 Mon Sep 17 00:00:00 2001 From: Eastae Date: Sun, 16 Aug 2015 11:03:53 -0700 Subject: [PATCH 03/14] Right sided upvotes Moved upvotes to right. Author is losing formatting. --- app/views/index.html | 12 +++++++++--- app/views/main.css | 4 ++++ app/views/test.json | 12 ++++++------ 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/app/views/index.html b/app/views/index.html index 1252734..680423e 100644 --- a/app/views/index.html +++ b/app/views/index.html @@ -33,13 +33,19 @@

    Results for $query

    $(document).ready(function() { $.getJSON( "test.json", function( data ) { $.each( data, function( key, val ) { - $('#list').append("
  • " + val.title +"
    "+ val.description.slice(255)+"
  • " ); + $('#list').append( + '
  • ' + val.title +'


    '+val.author+'

    '+ + '
    ' + val.votes + + '
    '+ + '' + + '
    '+ '

    '+val.description.slice(0,255)+'...Read More

    ' + + '
  • '); }); }); }); -
      +
    diff --git a/app/views/main.css b/app/views/main.css index b3a7dbf..5c3db88 100644 --- a/app/views/main.css +++ b/app/views/main.css @@ -31,3 +31,7 @@ ul{ .authorName{ font-size: 18px; } + +.desc { + text-align: left; +} \ No newline at end of file diff --git a/app/views/test.json b/app/views/test.json index e16afbb..79ceeeb 100644 --- a/app/views/test.json +++ b/app/views/test.json @@ -1,20 +1,20 @@ [ { -"title": "title1", -"description": "description1", +"title": "title title title1", +"description": "Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Sure would be rad if you read the rest of this resource...", "author": "Raplph author", "votes": 10 }, { -"title": "title2", -"description": "description2", +"title": "title title title2", +"description": "Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Sure would be rad if you read the rest of this resource...", "author": "Raplph author", "votes": 10 }, { -"title": "title3", -"description": "description3", +"title": "title title title3", +"description": "Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Sure would be rad if you read the rest of this resource...", "author": "Raplph author", "votes": 10 } From c6a03f566a650182723863b30483fdcaab318662 Mon Sep 17 00:00:00 2001 From: calvwng Date: Sun, 16 Aug 2015 11:34:33 -0700 Subject: [PATCH 04/14] Fixed authorname alignment issue in narrow screen style --- app/views/index.html | 14 +++++++------- app/views/main.css | 4 ++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/views/index.html b/app/views/index.html index 680423e..bd5c2bd 100644 --- a/app/views/index.html +++ b/app/views/index.html @@ -8,7 +8,7 @@ - + @@ -22,7 +22,7 @@
    -

    Results for $query

    +

    NoteSter

    @@ -30,7 +30,7 @@

    Results for $query

      - +
      - \ No newline at end of file + diff --git a/app/views/main.css b/app/views/main.css index 5c3db88..ebbde2a 100644 --- a/app/views/main.css +++ b/app/views/main.css @@ -28,6 +28,10 @@ ul{ list-style-type: none; } + +li{ + height: 120px; +} .authorName{ font-size: 18px; } From d1b63a31bcc385f2a697be2138f7b001a115e70d Mon Sep 17 00:00:00 2001 From: calvwng Date: Sun, 16 Aug 2015 12:17:19 -0700 Subject: [PATCH 05/14] Cleaning up Resource template for easier future reference --- app/views/index.html | 85 ++++++++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 38 deletions(-) diff --git a/app/views/index.html b/app/views/index.html index bd5c2bd..32cd722 100644 --- a/app/views/index.html +++ b/app/views/index.html @@ -3,12 +3,11 @@ - - + + - @@ -25,43 +24,53 @@

      NoteSter

      -
      -
      -
      -
        - - -
        -
        + + + + + + +
      • Author
      • +
        + +

        Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Sure would be rad if you read the rest of this resource...

        + Read More + --> + + + From 5265e6b8954b5cfc92e3973cf19aebdbf9251586 Mon Sep 17 00:00:00 2001 From: calvwng Date: Sun, 16 Aug 2015 13:58:45 -0700 Subject: [PATCH 06/14] Put Resource contents into cards Card implementation through "panel" class --- app/views/index.html | 54 ++++++++++++++++++++++++++++++++------------ app/views/main.css | 22 +++++++++++++++--- 2 files changed, 58 insertions(+), 18 deletions(-) diff --git a/app/views/index.html b/app/views/index.html index 32cd722..6f56817 100644 --- a/app/views/index.html +++ b/app/views/index.html @@ -33,21 +33,45 @@

        NoteSter

        $(document).ready(function() { $.getJSON( "test.json", function( data ) { $.each( data, function( key, val ) { - $('#list').append( - '
      • ' + - '

        ' + val.title +'


        ' + - '

        '+val.author+'

        '+ - '
        ' + - '
        ' + val.votes + '
        ' + - '' + - ''+ - '' + - '' + - '' + - '' + - '
        ' + - '

        '+val.description.slice(0,255)+'...Read More

        ' + - '
      • '); + $('#list').append( + '
      • \ +
        \ +
        \ +
        \ +

        ' + val.title + '

        \ +
        ' + val.author + '
        \ +
        \ +
        \ +
        ' + val.votes + '
        \ + ' + + '\ + \ + \ + \ + \ +
        \ +
        \ +
        \ +

        '+ val.description.slice(0,255) +'...Read More

        \ +
        \ +
        \ +
      • ' + ); + // $('#list').append( + // '
      • ' + + // '

        ' + val.title +'


        ' + + // '

        '+val.author+'

        '+ + // '
        ' + + // '
        ' + val.votes + '
        ' + + // '' + + // ''+ + // '' + + // '' + + // '' + + // '' + + // '
        ' + + // '

        '+val.description.slice(0,255)+'...Read More

        ' + + // '
      • '); }); }); }); diff --git a/app/views/main.css b/app/views/main.css index ebbde2a..9198fe2 100644 --- a/app/views/main.css +++ b/app/views/main.css @@ -7,7 +7,7 @@ } .tally{ - color: #8AB800; +/* color: #8AB800; */ margin-bottom: 0px; font-size: 20pt; } @@ -30,12 +30,28 @@ ul{ } li{ - height: 120px; + margin-bottom: 50px; + margin-top: 30px; } + +.panel{ +/* border: 1px solid black; */ + box-shadow: 1px 1px 10px grey; +} + +.panel-body{ + height: 150px; +} + +.panel-heading{ + background-color: gold; + height: 88px; +} + .authorName{ font-size: 18px; } .desc { text-align: left; -} \ No newline at end of file +} From b6a3bd45af064ab67d2fe30db06d3bc84feeef1c Mon Sep 17 00:00:00 2001 From: Eastae Date: Sun, 16 Aug 2015 14:19:57 -0700 Subject: [PATCH 07/14] Merged card implementation --- app/views/images/NoteStrIcon.png | Bin 0 -> 3641 bytes app/views/index.html | 19 ++++++++------- app/views/main.css | 39 +++++++++++++++++++++++++++++++ app/views/main.js | 14 +++++++++++ app/views/test.json | 4 ++-- 5 files changed, 65 insertions(+), 11 deletions(-) create mode 100644 app/views/images/NoteStrIcon.png create mode 100644 app/views/main.js diff --git a/app/views/images/NoteStrIcon.png b/app/views/images/NoteStrIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..75df1272d576f2dffb60867b2c95e1bc870edcf3 GIT binary patch literal 3641 zcmZ9PcQhMbAI7y&qtsqCi>OgTjao4)ND&oEYSsuBnypo#Mbrq2(ppuu)u>JE z+N<_nrK+TO^LyX-pZ7iIbMN<_^W5j$@40{6^W5nBFuiM6xvx@CP+WuR>%hr%mOT7v zsK_&h{aBA&uA?Ccw5gXf8f))^q|kEmazNgIdf2-l;YfR@0Pk)jm~5Vg>S&qyPi+&7 z-PyX?JEr+%sK68M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Ap@=Jo4sEVIdMsDe2;_WPAS4;!KRtk?Y&pInP zlgrk6;%jIc`SIlEP4wsGa0Xm3TkbCx~^ctaEhB z84a2&st;>o7me-AdsBwRvbGgj>EH&Fg~{y3KU-Wn9y&#;7E(*dxm3LznADf?Uw3Ip z+JyT=+St0qI4Z3u-+Z_N?h!tGlf-C#+rvU4HV~Futg`l{Ab|1Ra_Uk9IbM-rioyNE z|HPsHPelKXL*zshkt6&M|6~1sxBiQD6a%*)kiWE3a~g8&e^R>B2GiD8QravUOH7-$ zJ%6&Dcx6mT5I5he!F&8*>s>O_Y@glvZo9Chs`gCt?eE_lOO|4GCx7*BDreAosJdq| zl~cjs*D{^y!bcyvM~kSSOjCPVmGYB0;+a$nr2Ac;(GzAL{=8UXjh$O)^!N;+)=l1@ zBlUN0=$+edvk3_9pLcjlKPBN{TLCjGbbMpuOT5&4^i4BnrK`*PqbC>hGFauB%miol z4E0avaV2vlcIYQVldD)JYhJ>HLuUMlpZ2qbu9A2aa_rQu@mYFtuI%rl_r5;BOI&u4 z1^@c8#i7oRX1NA_Et-b_Q)xVq7!c~Y^Zs>yuu)bb$6K|TTOa{ z+KWOWEhs=zF}Yp!ojPjybP%-V^d`ZX`Vu=ryG=`C70VjC1=g{+;;kIYL|2|c;l{z1 z@pUfvgId-5TUKC@DAS_wq*a-NcM9ubKGYG{xk9PUE15ky`?cEa`%QDQ&Jrdms>w4R zi7g27RpV9pUw2`~F4#CK9k2Ta%%wPZRZr(Thgk3-S>c4aO>i4Ul!+_ zHR7PIEQHI&i&-%4YMA&0!>`UJ(7EB+X=dFoVeVlwJ - - -
        -
        -
          diff --git a/app/views/main.css b/app/views/main.css index 9198fe2..ee69e0b 100644 --- a/app/views/main.css +++ b/app/views/main.css @@ -12,6 +12,45 @@ font-size: 20pt; } +.nav{ + padding-top:10px; +} + + +.nav li { + display: inline; +} + +.jumbotron{ +background-color:#3399cc !important; +color: #fff !important; +border: 0px solid #3399cc; +border-radius: 10px; +} + +.logo-img{ + width:10%; + height:10%; + display: inline-block; +} +.btn{ + font-weight:bold; + color:#fff; + background-color: #3399cc; + overflow: hidden; + height:42px; +} + +.input-box{ + padding: 9px; + border: 2px solid #3399cc; + border-radius: 5px; + width: 700px; + font-size:14px; + display: inline-block; + overflow: hidden; +} + .thumb{ position: relative; margin-bottom: 10px; diff --git a/app/views/main.js b/app/views/main.js new file mode 100644 index 0000000..0892535 --- /dev/null +++ b/app/views/main.js @@ -0,0 +1,14 @@ +$(document).ready(function() { + $.getJSON( "test.json", function( data ) { + $.each( data, function( key, val ) { + $('#list').append( + '
        • ' + val.title +'


          '+val.author+'

          '+ + '
          ' + val.votes + + '
          '+ + '' + + '
          '+ '

          '+val.description.slice(0,255)+'...Read More

          ' + + '
        • '); + }); + }); + }); + diff --git a/app/views/test.json b/app/views/test.json index 79ceeeb..66321b9 100644 --- a/app/views/test.json +++ b/app/views/test.json @@ -10,12 +10,12 @@ "title": "title title title2", "description": "Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Sure would be rad if you read the rest of this resource...", "author": "Raplph author", -"votes": 10 +"votes": 2 }, { "title": "title title title3", "description": "Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Sure would be rad if you read the rest of this resource...", "author": "Raplph author", -"votes": 10 +"votes": -1 } ] \ No newline at end of file From a4fe8e7b639f6f513920b465bab23e812b8efc85 Mon Sep 17 00:00:00 2001 From: calvwng Date: Sun, 16 Aug 2015 14:28:47 -0700 Subject: [PATCH 08/14] Moving getJSON to main.js --- app/views/index.html | 56 +++-------------------------------------- app/views/main.js | 59 +++++++++++++++++++++++++++++++++----------- 2 files changed, 49 insertions(+), 66 deletions(-) diff --git a/app/views/index.html b/app/views/index.html index 9374b38..0679c0a 100644 --- a/app/views/index.html +++ b/app/views/index.html @@ -16,10 +16,10 @@
        • - - + + - +
          @@ -30,54 +30,6 @@

          NoteSter

            - -
            - + diff --git a/app/views/main.js b/app/views/main.js index 0892535..76155b3 100644 --- a/app/views/main.js +++ b/app/views/main.js @@ -1,14 +1,45 @@ -$(document).ready(function() { - $.getJSON( "test.json", function( data ) { - $.each( data, function( key, val ) { - $('#list').append( - '
          • ' + val.title +'


            '+val.author+'

            '+ - '
            ' + val.votes + - '
            '+ - '' - + '
            '+ '

            '+val.description.slice(0,255)+'...Read More

            ' + - '
          • '); - }); - }); - }); - +$(document).ready(function() { + $.getJSON( "test.json", function( data ) { + $.each( data, function( key, val ) { + $('#list').append( + '
          • \ +
            \ +
            \ +
            \ +

            ' + val.title + '

            \ +
            ' + val.author + '
            \ +
            \ +
            \ +
            ' + val.votes + '
            \ + ' + + '\ + \ + \ + \ + \ +
            \ +
            \ +
            \ +

            '+ val.description.slice(0,255) +'...Read More

            \ +
            \ +
            \ +
          • ' + ); + // $('#list').append( + // '
          • ' + + // '

            ' + val.title +'


            ' + + // '

            '+val.author+'

            '+ + // '
            ' + + // '
            ' + val.votes + '
            ' + + // '' + + // ''+ + // '' + + // '' + + // '' + + // '' + + // '
            ' + + // '

            '+val.description.slice(0,255)+'...Read More

            ' + + // '
          • '); + }); + }); +}); From 33236fe441eed5cf39bcfab80b10962cec074b68 Mon Sep 17 00:00:00 2001 From: Eastae Date: Sun, 16 Aug 2015 14:30:28 -0700 Subject: [PATCH 09/14] Updated color of cards and logo --- app/views/images/NoteStrIcon.png | Bin 3641 -> 3524 bytes app/views/main.css | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/images/NoteStrIcon.png b/app/views/images/NoteStrIcon.png index 75df1272d576f2dffb60867b2c95e1bc870edcf3..39fe04d76129ba50481d3486a6289705f8dcc5cc 100644 GIT binary patch delta 3453 zcmZXWdpy&N|Hp}wsoZbLrG}bYlcLL**x5AXRxy{kY|2#B+;2_p zxyx-B#B^Zw^mF5MtSG5}l*kb1ZLhZd=(ZsN_7 zO#?u|)51De6)|X@fM5VtaBrXe~1WF7TlBuY1$yVpq6|3)GG|Zh}+C1WX zmn{VUvTntj{pDuVrvyV|?{@-c4=-|SInL@_*vV^NNMW(|Hg|US0z!IPR)RMd7unit z)oazoTIMBbg$w}u^s|w;c(UEJJvKzxLYMqw`5ohtG+AhO=3DgGYRBUS7xD5gYA+Vd&C*-4}844 zX8bLJEP@mmahxtt{#EERev#4nvY|IUO{Ed_NuVyjW5l@bDh-B4jqE6}Lcyev^rQKM zG;6dfJUpJ6fKZraF30A!590uEeWFz9_pesvG}2}{uN!SCh1X6+nNE!g@Uu*Q z`GHXsKencnWqxV)S8ncLX-H4mOl0U6u@O0AIT#MrEvcpF36d+lK!KJ-&2qq|MuWN( zFC&^u?jv|Mdyu6xy@v)-Z<>6D4B9q_dLK*8p z3;J4x+-&wtSI)*ija@0x`y+wa0mM;%+u$byAyXsfSwGmpVsF}=h+~^oBM0Y~YUwSw zlbzSsoiBY|`M68-3;3WU% zGERmrE)6579hc9%9QQy=ZTBpU+%cKqAw)5zOj>64rn$Eir-S?Zd`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N6;^XmJiQf31-BE z?Wp$m(RGz~nad+2aLLhFwtL2F$O>|q%i%txKCw4Xf-bUQRt7wK*>;yVlA60gf=dfY z+JmA?5m+5GQk?ufnHS2OKt@)ZYlgo)^@Hs-ow0|Y5B76OM>j-&+BlD7!4^}a4 zS1OBpPNS?k=d-7I5256lJEt$sX?+Zx-C6Pf;}eVC z;l6FLMF&Qe@ZS5*$>~S_VeAwiA@KgjZZCTKj!x@&+~o@$*4N`42OSK*+*GdSIzmFYa^r>m zIe2nMrMr1=DKgL!mXQKi^F-gkGrb-`2w4MDF9aSRJX~JqZt9?lGE`BpVnP z1#vln5DT)L0BaT$oV?zDs6Do&D_cA+ClKNz*;}w;ahDU~rb%Ot$K?b<94w&K-MqI{ z(^2?_y|NPCL7v5Z0^185q7-w%0A&m-xDcBD5$G Date: Sun, 16 Aug 2015 15:14:19 -0700 Subject: [PATCH 10/14] Changed thumbs Changed thumbs to buttons and changed css for votecount and buttons --- app/views/main.css | 9 +++++++++ app/views/main.js | 32 ++++++++++---------------------- 2 files changed, 19 insertions(+), 22 deletions(-) diff --git a/app/views/main.css b/app/views/main.css index d3b6461..7905130 100644 --- a/app/views/main.css +++ b/app/views/main.css @@ -78,6 +78,10 @@ li{ box-shadow: 1px 1px 10px grey; } +.panel #voteCount{ + text-align: center; +} + .panel-body{ height: 150px; } @@ -91,6 +95,11 @@ li{ font-size: 18px; } +.panel button{ + background: transparent; + border: none; +} + .desc { text-align: left; } diff --git a/app/views/main.js b/app/views/main.js index 76155b3..4a237ee 100644 --- a/app/views/main.js +++ b/app/views/main.js @@ -3,7 +3,7 @@ $(document).ready(function() { $.each( data, function( key, val ) { $('#list').append( '
          • \ -
            \ +
            \
            \
            \

            ' + val.title + '

            \ @@ -11,35 +11,23 @@ $(document).ready(function() {
            \
            \
            ' + val.votes + '
            \ - ' + + \ + \
            \
            \
            \ -

            '+ val.description.slice(0,255) +'...Read More

            \ +

            '+ val.description.slice(0,255) +'...Read More

            \
            \
            \
          • ' ); - // $('#list').append( - // '
          • ' + - // '

            ' + val.title +'


            ' + - // '

            '+val.author+'

            '+ - // '
            ' + - // '
            ' + val.votes + '
            ' + - // '' + - // ''+ - // '' + - // '' + - // '' + - // '' + - // '
            ' + - // '

            '+val.description.slice(0,255)+'...Read More

            ' + - // '
          • '); + //begin event handler + $("#card" + val.id).find("voteCount") }); }); + }); From 82a0df8b029950507ac7e7de5e1eb82f0daa8054 Mon Sep 17 00:00:00 2001 From: Eastae Date: Sun, 16 Aug 2015 16:21:20 -0700 Subject: [PATCH 11/14] initialVoteClickHandler --- app/views/main.css | 5 +++++ app/views/main.js | 45 ++++++++++++++++++++++++++++++++++++++++++--- app/views/test.json | 3 +++ 3 files changed, 50 insertions(+), 3 deletions(-) diff --git a/app/views/main.css b/app/views/main.css index 7905130..caf2e58 100644 --- a/app/views/main.css +++ b/app/views/main.css @@ -41,6 +41,11 @@ border-radius: 10px; height:42px; } +.btn:hover{ +color:#fff; +background-color: #1f698d; +} + .input-box{ padding: 9px; border: 2px solid #3399cc; diff --git a/app/views/main.js b/app/views/main.js index 4a237ee..f3b6f64 100644 --- a/app/views/main.js +++ b/app/views/main.js @@ -3,7 +3,7 @@ $(document).ready(function() { $.each( data, function( key, val ) { $('#list').append( '
          • \ -
            \ +
            \
            \
            \

            ' + val.title + '

            \ @@ -14,7 +14,7 @@ $(document).ready(function() { \ - \
            \ @@ -25,8 +25,47 @@ $(document).ready(function() {
            \
          • ' ); + + //begin event handler - $("#card" + val.id).find("voteCount") + var voteContainer = $("#card" + val.id).find(".upDownVote"); + + //var isUp = false; + //var isDown = false; + + voteContainer.find("#upVoteButton").click(function(evt){ + var btn = evt.currentTarget; // the clicked button + console.log("up:" + evt.currentTarget); + + /* + if(!isUp){ + val.votes++; + isUp = true; + } + else{ + val.votes--; + isUp = false; + } + $("#voteCount").text(val.votes); + */ + }); + + voteContainer.find("#downVoteButton").click(function(evt){ + var btn = evt.currentTarget; // the clicked button + console.log("down:" + evt.currentTarget); + + /* + if(!isDown){ + val.votes--; + isDown = true; + } + else{ + val.votes++; + isDown = false; + } + $("#voteCount").text(val.votes); + */ + }); }); }); diff --git a/app/views/test.json b/app/views/test.json index 66321b9..9a2f655 100644 --- a/app/views/test.json +++ b/app/views/test.json @@ -1,18 +1,21 @@ [ { +"id": 1, "title": "title title title1", "description": "Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Sure would be rad if you read the rest of this resource...", "author": "Raplph author", "votes": 10 }, { +"id": 2, "title": "title title title2", "description": "Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Sure would be rad if you read the rest of this resource...", "author": "Raplph author", "votes": 2 }, { +"id": 3, "title": "title title title3", "description": "Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Aavi eiqvqn eqivqjqe. Thoenqv eiqnd eqoov qqkedas wqow, winvqo! fwqifqncqei qcieqncqi qicq cqirpq cowq cwoq. Sure would be rad if you read the rest of this resource...", "author": "Raplph author", From dbaa261439f16ea9d16ed1e398da48b8e6289b73 Mon Sep 17 00:00:00 2001 From: Eastae Date: Sun, 16 Aug 2015 16:29:15 -0700 Subject: [PATCH 12/14] Changed name to resultlist.html --- app/views/index.html | 2 +- app/views/resultlist.html | 53 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 app/views/resultlist.html diff --git a/app/views/index.html b/app/views/index.html index 0679c0a..d029896 100644 --- a/app/views/index.html +++ b/app/views/index.html @@ -15,7 +15,7 @@
            • -
            • +
            diff --git a/app/views/resultlist.html b/app/views/resultlist.html new file mode 100644 index 0000000..d029896 --- /dev/null +++ b/app/views/resultlist.html @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + +
            +
            +

            NoteSter

            +
            +
            +
            +
              + +
              + + + + From e6def9cb1204915eeea6f21bb1e871733d8aad22 Mon Sep 17 00:00:00 2001 From: Eastae Date: Sun, 16 Aug 2015 16:36:58 -0700 Subject: [PATCH 13/14] Commit final front end --- app/views/index.html | 53 --------------------------------------- app/views/resultlist.html | 2 +- 2 files changed, 1 insertion(+), 54 deletions(-) delete mode 100644 app/views/index.html diff --git a/app/views/index.html b/app/views/index.html deleted file mode 100644 index d029896..0000000 --- a/app/views/index.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - -
              -
              -

              NoteSter

              -
              -
              -
              -
                - -
                - - - - diff --git a/app/views/resultlist.html b/app/views/resultlist.html index d029896..828959c 100644 --- a/app/views/resultlist.html +++ b/app/views/resultlist.html @@ -15,7 +15,7 @@
                • -
                • +
                From fb9a084e74572a79384e35b1ce49b32466ff22ef Mon Sep 17 00:00:00 2001 From: Eastae Date: Sun, 16 Aug 2015 17:15:58 -0700 Subject: [PATCH 14/14] Updated for preso --- app/views/{ => css}/main.css | 0 app/views/{ => js}/main.js | 2 +- app/views/{ => js}/test.json | 0 app/views/resultlist.html | 6 +++--- 4 files changed, 4 insertions(+), 4 deletions(-) rename app/views/{ => css}/main.css (100%) rename app/views/{ => js}/main.js (97%) rename app/views/{ => js}/test.json (100%) diff --git a/app/views/main.css b/app/views/css/main.css similarity index 100% rename from app/views/main.css rename to app/views/css/main.css diff --git a/app/views/main.js b/app/views/js/main.js similarity index 97% rename from app/views/main.js rename to app/views/js/main.js index f3b6f64..97fddd8 100644 --- a/app/views/main.js +++ b/app/views/js/main.js @@ -1,5 +1,5 @@ $(document).ready(function() { - $.getJSON( "test.json", function( data ) { + $.getJSON( "js/test.json", function( data ) { $.each( data, function( key, val ) { $('#list').append( '
              • \ diff --git a/app/views/test.json b/app/views/js/test.json similarity index 100% rename from app/views/test.json rename to app/views/js/test.json diff --git a/app/views/resultlist.html b/app/views/resultlist.html index 828959c..3e82928 100644 --- a/app/views/resultlist.html +++ b/app/views/resultlist.html @@ -6,7 +6,7 @@ - + @@ -25,7 +25,7 @@
                -

                NoteSter

                +

                Search Results

                @@ -48,6 +48,6 @@

                NoteSter

                -->
                - +