Browse Source

First version.

Frederic G. MARAND 8 years ago
commit
2c52ee7fa1
15 changed files with 146 additions and 0 deletions
  1. 3 0
      .gitignore
  2. 8 0
      .meteor/.finished-upgraders
  3. 1 0
      .meteor/.gitignore
  4. 7 0
      .meteor/.id
  5. 10 0
      .meteor/packages
  6. 2 0
      .meteor/platforms
  7. 1 0
      .meteor/release
  8. 49 0
      .meteor/versions
  9. 1 0
      image_share.css
  10. 29 0
      image_share.html
  11. 35 0
      image_share.js
  12. BIN
      public/bass.jpg
  13. BIN
      public/beard.jpg
  14. BIN
      public/favicon.ico
  15. BIN
      public/laptops.jpg

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
+.DS_Store
+.idea
+.meteor/local

+ 8 - 0
.meteor/.finished-upgraders

@@ -0,0 +1,8 @@
+# This file contains information which helps Meteor properly upgrade your
+# app when you run 'meteor update'. You should check it into version control
+# with your project.
+
+notices-for-0.9.0
+notices-for-0.9.1
+0.9.4-platform-file
+notices-for-facebook-graph-api-2

+ 1 - 0
.meteor/.gitignore

@@ -0,0 +1 @@
+local

+ 7 - 0
.meteor/.id

@@ -0,0 +1,7 @@
+# This file contains a token that is unique to your project.
+# Check it into your repository along with the rest of this directory.
+# It can be used for purposes such as:
+#   - ensuring you don't accidentally deploy one app on top of another
+#   - providing package authors with aggregated statistics
+
+1j5vmmy1wavk2n1i1cfxc

+ 10 - 0
.meteor/packages

@@ -0,0 +1,10 @@
+# Meteor packages used by this project, one per line.
+# Check this file (and the other files in this directory) into your repository.
+#
+# 'meteor add' and 'meteor remove' will edit this file for you,
+# but you can also edit it by hand.
+
+meteor-platform
+autopublish
+insecure
+twbs:bootstrap

+ 2 - 0
.meteor/platforms

@@ -0,0 +1,2 @@
+server
+browser

+ 1 - 0
.meteor/release

@@ -0,0 +1 @@
+METEOR@1.1.0.2

+ 49 - 0
.meteor/versions

@@ -0,0 +1,49 @@
+autopublish@1.0.3
+autoupdate@1.2.1
+base64@1.0.3
+binary-heap@1.0.3
+blaze@2.1.2
+blaze-tools@1.0.3
+boilerplate-generator@1.0.3
+callback-hook@1.0.3
+check@1.0.5
+ddp@1.1.0
+deps@1.0.7
+ejson@1.0.6
+fastclick@1.0.3
+geojson-utils@1.0.3
+html-tools@1.0.4
+htmljs@1.0.4
+http@1.1.0
+id-map@1.0.3
+insecure@1.0.3
+jquery@1.11.3_2
+json@1.0.3
+launch-screen@1.0.2
+livedata@1.0.13
+logging@1.0.7
+meteor@1.1.6
+meteor-platform@1.2.2
+minifiers@1.1.5
+minimongo@1.0.8
+mobile-status-bar@1.0.3
+mongo@1.1.0
+observe-sequence@1.0.6
+ordered-dict@1.0.3
+random@1.0.3
+reactive-dict@1.1.0
+reactive-var@1.0.5
+reload@1.1.3
+retry@1.0.3
+routepolicy@1.0.5
+session@1.1.0
+spacebars@1.0.6
+spacebars-compiler@1.0.6
+templating@1.1.1
+tracker@1.0.7
+twbs:bootstrap@3.3.5
+ui@1.0.6
+underscore@1.0.3
+url@1.0.4
+webapp@1.2.0
+webapp-hashing@1.0.3

+ 1 - 0
image_share.css

@@ -0,0 +1 @@
+/* CSS declarations go here */

+ 29 - 0
image_share.html

@@ -0,0 +1,29 @@
+<head>
+  <title>image_share</title>
+</head>
+
+<body>
+  <h1>Welcome to coursera!</h1>
+  <div class="container">
+  {{> images}}
+</div>
+</body>
+
+<template name="images">
+	<div class="row">
+  {{#each images}}
+  <div class="col-xs-12 col-md-3">
+  	<div class="thumbnail">
+
+  	 	<img class="js-image" src="{{img_src}}" 
+  		alt="{{img_alt}}"/> 
+  			
+  		<div class="caption">
+        	<h3>Thumbnail label</h3>
+        	<p>description of the image</p>
+     	</div>
+     </div>
+    </div> <!-- / col -->
+  {{/each}}
+</div> <!-- / row -->
+  </template>

+ 35 - 0
image_share.js

@@ -0,0 +1,35 @@
+if (Meteor.isClient) {
+   var img_data = [
+   {
+      img_src:"laptops.jpg",
+      img_alt:"some laptops on a table" 
+   }, 
+   {
+      img_src:"bass.jpg",
+      img_alt:"a bass player" 
+   }, 
+   {
+      img_src:"beard.jpg",
+      img_alt:"some musicians with beards" 
+   }, 
+
+   ];
+
+   Template.images.helpers({images:img_data});
+
+
+   Template.images.events({
+    'click .js-image':function(event){
+        $(event.target).css("width", "50px");
+    }
+   });
+
+}
+
+if (Meteor.isServer) {
+   console.log("I am the server");
+}
+
+
+console.log("where am I running");
+

BIN
public/bass.jpg


BIN
public/beard.jpg


BIN
public/favicon.ico


BIN
public/laptops.jpg