We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8fb3fdc + 7f63ff1 commit ed7992eCopy full SHA for ed7992e
.gitignore
@@ -1 +1,2 @@
1
node_modules/
2
+.sass_cache/
coffee/script.coffee
@@ -1,2 +1,9 @@
-$ ->
- $('h1').append('Hello')
+$list = $('#list')
+$('#add').click ->
3
+ $li = $('<li class="animate">')
4
+ $list.append $li
5
+ $li.html 'test'
6
+ return
7
+$('#remove').click ->
8
+ $('#list li:last').remove()
9
css/style.css
@@ -4888,5 +4888,15 @@ button.close {
4888
display: none !important; } }
4889
4890
.test {
4891
+ color: red; }
4892
+
4893
+.animate {
4894
+ transition-property: transform, color;
4895
+ transition-timing: ease-out;
4896
+ transition-duration: .3s;
4897
4898
4899
+.animation:active {
4900
+ transform: scale(1.02);
4901
color: blue; }
4902
dist/all.js
@@ -1 +1,14 @@
-alert("Hello");
+var $list;
+$list = $('#list');
+$('#add').click(function() {
+ var $li;
+ $li = $('<li class="animate">');
+ $list.append($li);
+ $li.html('test');
10
+});
11
12
+$('#remove').click(function() {
13
+ $('#list li:last').remove();
14
dist/all.min.js
gulpfile.js
@@ -33,8 +33,7 @@ gulp.task('sass', function() {
33
gulp.task('coffee', function() {
34
gulp.src('coffee/*.coffee')
35
.pipe(coffee({bare: true}))
36
- .on('error', gutil.log)
37
- .pipe(gulp.dest('scripts'));
+ .pipe(gulp.dest('js'));
38
});
39
40
// Concatenate & Minify JS
@@ -51,12 +50,13 @@ gulp.task('scripts', function() {
51
50
// Watch Files For Changes
52
gulp.task('watch', function() {
53
livereload.listen();
+ gulp.watch('coffee/*.coffee', ['coffee']);
54
gulp.watch('js/*.js', ['lint', 'scripts']);
55
- gulp.watch('scss/*.scss', ['sass']);
56
gulp.watch('*.html', function(e){
57
livereload.changed(e.path);
58
+ gulp.watch('scss/*.scss', ['sass']);
59
60
61
// Default Task
62
-gulp.task('default', ['lint', 'sass', 'scripts', 'watch']);
+gulp.task('default', ['lint', 'sass', 'coffee', 'scripts', 'watch']);
index.html
@@ -4,11 +4,22 @@
<title>Bootstrap 101 Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/style.css">
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
</head>
<body>
<div class="page-wrapper">
<h1 class="test">Hello, world!</h1>
<script src="js/script.js"></script>
15
+ <ul id="list">
16
+ <li class='animate'>test</li>
17
+ </ul>
18
19
+ <input type="button" value="add" id="add">
20
+ <input type="button" value="remove" id="remove">
21
+ <script src="dist/all.min.js"></script>
22
</div>
23
24
</body>
25
</html>
js/script.js
scss/style.scss
@@ -1,6 +1,18 @@
@import "bootstrap";
.test{
+ color: red;
+}
+.animate{
+.animation:active{
color: blue;
}
.page-wrapper {
0 commit comments