Permalink
Browse files

deleted old stuff

  • Loading branch information...
andymboyle committed Oct 12, 2013
1 parent 726a715 commit f8017994a22d3b102e5ec3110fa50f48957c778e
Showing with 0 additions and 2,413 deletions.
  1. +0 −1 README
  2. +0 −226 css/responsive-chart.css
  3. +0 −47 handlebars.html
  4. +0 −68 js/backbone.tabletopSync.js
  5. +0 −1,550 js/handlebars.js
  6. +0 −4 js/jquery.js
  7. 0 js/tables.js
  8. +0 −309 js/tabletop.js
  9. +0 −72 pension.html
  10. +0 −136 responsive-chart.html
View
1 README
@@ -1 +0,0 @@
-This is a basic project that I'm showing at a SPJ talk.
View
@@ -1,226 +0,0 @@
-/*
-
- RESPONSIVE CHART
- bostonglobe.com
-
- Nov. 18, 2011
- By Tom Giratikanon
- Modified by Andy Boyle for use in SPJ class
-
- */
-
-
- div.article {
- width: 100%;
- margin: 0;
-}
-.section-nav {
- display: none;
-}
-
-.article .aside {
- display: none;
-}
-
-.interactive-intro h3 {
- margin: 0 0 1.125em;
-}
-
-.datatable {
- font: normal 0.9em/1.25 Arial, Helvetica, sans-serif;
- color: #333333;
- width: 100%;
-}
-
-.datatable .header {
- font-weight: bold;
- display: block;
- cursor: pointer;
- display: none;
-}
-
-.datatable .header .cell:hover {
- text-decoration: underline;
-}
-
-.datatable .row {
- float: left;
- width: 100%;
- border-bottom: 1px solid #eee;
- padding: 1em 0;
-}
-
-.datatable dt {
- font-weight: bold;
- color: #464646;
- font-family: Arial, Helvetica, sans-serif;
-}
-
-.datatable .cell {
- margin-bottom: 0.5em;
-}
-
-.primary dt {
- display: none;
-}
-
-.primary dd {
- font-size: 1.25em;
- font-weight: bold;
- margin-bottom: 0.5em;
-}
-
-.datatable .tablebody .inner-cell {
- font: normal 1.05em/1.6 Georgia, "Times New Roman", serif;
-}
-
-.datatable br {
- display: block;
-}
-
-@media screen and (min-width:1000px) {
-
- .primary dd {
- font-size: 1em;
- font-weight: normal;
- margin-bottom: 0;
- }
-
- .datatable .cell {
- float: left;
- padding: 1em 0;
- }
-
- .datatable dt {
- display: none;
- }
-
- .datatable .inner-cell {
- padding: 0 0.5em;
- }
-
- .datatable .row {
- padding: 0;
- }
-
- .datatable .header {
- display: block;
- }
-
- .datatable .header .cell {
- padding: 0.5em 0;
- }
-
- .datatable .cell.highlight {
- padding: 0;
- }
-
- .highlight .inner-cell {
- padding: 0.5em;
- }
-
- .datatable-menu {
- display: none;
- }
-
- .datatable .header {
- border-top: 1px solid #eee;
- background-color: #F9F9F9;
- }
-
- .datatable .cell {
- margin-bottom: 0em;
- }
-
-}
-
-
-
-/*
- CUSTOM STYLES
-
- */
-
-
-
-.datatable img.img {
- width: 60px;
- float: left;
-}
-
-.datatable .text {
- font-family: Arial, Helvetica, sans-serif;
- line-height: 1.3;
- margin-left: 70px;
- font-weight: bold;
-}
-
-.row-meta {
- float: left;
- width: 100%;
- margin: 0 0 1em 0;
-}
-
-
-
-.tablebody {
- border-top: 1px solid #eee;
-}
-
-@media screen and (min-width:600px) {
-
- .row-meta {
- width: 30%;
- margin-right: 5%;
- }
-
- .row-body {
- width: 65%;
- float: left;
- }
-
-}
-
-
-@media screen and (min-width:1000px) {
-
- .datatable .name {
- width: 20%;
- }
-
- .datatable .location {
- width: 15%;
- }
-
- .datatable .accusations {
- width: 25%;
- }
-
- .datatable .resolution {
- width: 25%;
- }
-
- .datatable .reason {
- width: 14%;
- }
-
- .datatable .tablebody .inner-cell {
- padding-right: 1.5em;
- }
-
- .datatable .tablebody .reason .inner-cell {
- padding-right: 0;
- }
-
- .row-meta {
- width: auto;
- float: none;
- margin: 0;
- }
-
- .row-body {
- width: auto;
- float: none;
- }
-
-}
View
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link href="../common/cats.css" media="screen" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <h1>An example with a Google doc</h1>
-
- <div id="content"></div>
-
- <script id="cat-template" type="text/x-handlebars-template">
- <div class="entry">
- <h2>{{event}}</h2>
- <h3>Genre: {{genre}}</h3>
- <div class="body">
- {{blurb}}
- </div>
- </div>
- </script>
-
- <!-- Don't need jQuery for Tabletop, but using it for this example -->
- <script type="text/javascript" src="js/handlebars.js"></script>
- <script type="text/javascript" src="js/jquery.js"></script>
- <script type="text/javascript" src="js/tabletop.js"></script>
- <script type="text/javascript">
- var public_spreadsheet_url = 'https://docs.google.com/spreadsheet/pub?key=0Ark-PJD-Ze_DdEFzb0ZoQk55OU9RdzRtck85UXduOFE&output=html';
-
- $(document).ready( function() {
- Tabletop.init( { key: public_spreadsheet_url,
- callback: showInfo,
- parseNumbers: true } );
- });
-
- function showInfo(data, tabletop) {
- var source = $("#cat-template").html();
- var template = Handlebars.compile(source);
-
- $.each( tabletop.sheets("events").all(), function(i, cat) {
- var html = template(cat);
- $("#content").append(html);
- });
- }
-
- document.write("The published spreadsheet is located at <a target='_new' href='" + public_spreadsheet_url + "'>" + public_spreadsheet_url + "</a>");
- </script>
- </body>
-</html>
@@ -1,68 +0,0 @@
-/*
- A drop-in read-only Google-Spreadsheets-backed replacement for Backbone.sync
-
- Tabletop must be successfully initialized prior to using fetch()
-
- Backbone.tabletopSync only supports the 'read' method, and will fail
- loudly on any other operations
-*/
-
-Backbone.tabletopSync = function(method, model, options, error) {
- // Backwards compatibility with Backbone <= 0.3.3
- if (typeof options == 'function') {
- options = {
- success: options,
- error: error
- };
- }
-
- var resp;
-
- var tabletopOptions = model.tabletop || model.collection.tabletop;
-
- var instance = tabletopOptions.instance;
-
- if(typeof(instance) == "undefined") {
- instance = Tabletop.init( { key: tabletopOptions.key,
- wanted: [ tabletopOptions.sheet ],
- wait: true } )
- tabletopOptions.instance = instance;
- } else {
- instance.addWanted(tabletopOptions.sheet);
- }
-
- if(typeof(tabletopOptions.sheet) == "undefined") {
- return;
- }
-
- var sheet = instance.sheets( tabletopOptions.sheet );
-
- if(typeof(sheet) === "undefined") {
- // Hasn't been fetched yet, let's fetch!
- instance.fetch( function() {
- Backbone.tabletopSync(method, model, options, error);
- })
- return;
- }
-
- switch (method) {
- case "read":
- if(model.id) {
- resp = _.find( sheet.all(), function(item) {
- return model.id == item[model.idAttribute];
- }, this);
- } else {
- resp = sheet.all();
- }
- break;
- default:
- throw("Backbone.tabletopSync is read-only");
- }
-
- if (resp) {
- options.success(resp);
- } else {
- options.error("Record not found");
- }
-
-};
Oops, something went wrong.

0 comments on commit f801799

Please sign in to comment.