An Ion (reusable Ionic widget) for adding tinder-style swipe cards to your app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="clearfix"> | |
<div class="col-md-offset-4 col-md-4"> | |
<div class="media"> | |
<div class="media-left"> | |
<img src="http://placehold.it/90x90" width="90" class="media-object img-circle"> | |
</div> | |
<div class="media-body"> | |
<h2 class="media-heading">{{contact.name}}</h2> | |
<h4>{{contact.email}}</h4> | |
<h5>{{contact.location.city}}, {{contact.location.state}}, {{contact.location.zip}}</h5> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="col-md-offset-3 col-md-6"> | |
<form method="post" name="contactForm" ng-submit="addContact();"> | |
<div> | |
<h4 id="addContactModalLabel">Add Contact</h4> | |
</div> | |
<div> | |
<div class="form-group"> | |
<label for="name">Name</label> | |
<input type="text" class="form-control" ng-model="contact.name" required placeholder="Enter name"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="contactApp"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Time to Hack: Single Page Applications with Routing in AngularJS</title> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
<style type="text/css"> | |
.contacts p, .contacts p.lead{ margin: 0; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(e){ | |
$('.item').click(function (e){ | |
$('.active-tab').removeClass('active-tab'); | |
$(this).addClass('active-tab'); | |
if($(this).next('.item-data').css('display') != 'block'){ | |
$('.active').slideUp('fast').removeClass('active'); | |
$(this).next('.item-data').addClass('active').slideDown('slow'); | |
} else { | |
$('.active').slideUp('fast').removeClass('active'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.active-tab').removeClass('active-tab'); | |
$(this).addClass('active-tab'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="main"> | |
<h1>ToDo</h1> | |
<section> | |
<div class="input-container"> | |
<input type="text" name="task" id="task" placeholder="Todo Task"/> | |
</div> | |
<div class="button-container"> | |
<button type="button" name="saveTask" id="saveTask">Save Task</button> | |
</div> | |
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #eee; | |
text-align: center; | |
padding: 0 25px; | |
} | |
#main { | |
width: 500px; | |
margin: auto; | |
text-align: left; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Parse.initialize("APPLICATION_ID", "JAVASCRIPT_KEY"); | |
//Use your "APPLICATION_ID" and "JAVASCRIPT_KEY" here for Parse.initialize | |
Parse.initialize('kjhsdhfkjhsd', 'kjhxdkfhkjdhsgjkhdg') | |
var ToDoObject = Parse.Object.extend("ToDo"); | |
var query = new Parse.Query(ToDoObject); | |
//Fetch all saved tasks in beginning | |
query.find({ | |
success: function(results) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "# MusicStore" >> README.md | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin https://github.com/pankajpatel/MusicStore.git | |
git push -u origin master |