Optimize CSS and JS
This commit is contained in:
parent
e9d6da02ef
commit
798b1fd548
6 changed files with 63 additions and 15 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
||||||
youtube-dl
|
youtube-dl
|
||||||
|
dist/
|
||||||
|
node_modules/
|
||||||
|
|
36
Gruntfile.js
Normal file
36
Gruntfile.js
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
/*jslint node: true */
|
||||||
|
module.exports = function (grunt) {
|
||||||
|
'use strict';
|
||||||
|
grunt.initConfig({
|
||||||
|
uglify: {
|
||||||
|
combine: {
|
||||||
|
files: {
|
||||||
|
'dist/main.js': ['js/cast.js']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
cssmin: {
|
||||||
|
combine: {
|
||||||
|
files: {
|
||||||
|
'dist/main.css': ['css/style.css']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
scripts: {
|
||||||
|
files: ['js/*.js'],
|
||||||
|
tasks: ['uglify']
|
||||||
|
},
|
||||||
|
styles: {
|
||||||
|
files: ['css/*.css'],
|
||||||
|
tasks: ['cssmin']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
|
|
||||||
|
grunt.registerTask('default', ['uglify', 'cssmin']);
|
||||||
|
};
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
body {
|
body {
|
||||||
text-align:center;
|
text-align:center;
|
||||||
background-image:url('img/fond.jpg');
|
background-image:url('../img/fond.jpg');
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
font-weight:400;
|
font-weight:400;
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ header a:hover
|
||||||
}
|
}
|
||||||
|
|
||||||
.share
|
.share
|
||||||
{background-image:url('img/share.png');}
|
{background-image:url('../img/share.png');}
|
||||||
|
|
||||||
.sharemask
|
.sharemask
|
||||||
{
|
{
|
||||||
|
@ -60,13 +60,13 @@ position:absolute;
|
||||||
top:0;
|
top:0;
|
||||||
left:0;
|
left:0;
|
||||||
z-index:10;
|
z-index:10;
|
||||||
background-image:url('img/sharemask.png');
|
background-image:url('../img/sharemask.png');
|
||||||
background-position:top left;
|
background-position:top left;
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.facebook
|
.facebook
|
||||||
{background-image:url('img/facebook.png');}
|
{background-image:url('../img/facebook.png');}
|
||||||
|
|
||||||
.facebookmask
|
.facebookmask
|
||||||
{
|
{
|
||||||
|
@ -76,13 +76,13 @@ position:absolute;
|
||||||
top:0;
|
top:0;
|
||||||
left:0;
|
left:0;
|
||||||
z-index:10;
|
z-index:10;
|
||||||
background-image:url('img/facebookmask.png');
|
background-image:url('../img/facebookmask.png');
|
||||||
background-position:top left;
|
background-position:top left;
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.twitter
|
.twitter
|
||||||
{background-image:url('img/twitter.png');}
|
{background-image:url('../img/twitter.png');}
|
||||||
|
|
||||||
.twittermask
|
.twittermask
|
||||||
{
|
{
|
||||||
|
@ -92,7 +92,7 @@ position:absolute;
|
||||||
top:0;
|
top:0;
|
||||||
left:0;
|
left:0;
|
||||||
z-index:10;
|
z-index:10;
|
||||||
background-image:url('img/twittermask.png');
|
background-image:url('../img/twittermask.png');
|
||||||
background-position:top left;
|
background-position:top left;
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,7 @@ footer {
|
||||||
bottom:0;
|
bottom:0;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
background-image:url('img/fondfooter.png');
|
background-image:url('../img/fondfooter.png');
|
||||||
background-repeat:repeat-x;
|
background-repeat:repeat-x;
|
||||||
background-position:top left;
|
background-position:top left;
|
||||||
padding-top:20px;
|
padding-top:20px;
|
||||||
|
@ -225,7 +225,7 @@ color:#a5a5a5;
|
||||||
font-size:13px;
|
font-size:13px;
|
||||||
z-index:10;
|
z-index:10;
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
background-image:url('img/compatiblerouage.png');
|
background-image:url('../img/compatiblerouage.png');
|
||||||
background-position:0 100%;
|
background-position:0 100%;
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
padding-left:41px;
|
padding-left:41px;
|
||||||
|
@ -350,7 +350,7 @@ padding:3px;
|
||||||
left: 0;
|
left: 0;
|
||||||
padding-left:23px;
|
padding-left:23px;
|
||||||
padding-top:2px;
|
padding-top:2px;
|
||||||
background-image:url('img/mp3hover.png');
|
background-image:url('../img/mp3hover.png');
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
background-position:right top;
|
background-position:right top;
|
||||||
width:56px;
|
width:56px;
|
||||||
|
@ -363,7 +363,7 @@ padding:3px;
|
||||||
.audio:checked + label .ui:after {
|
.audio:checked + label .ui:after {
|
||||||
content: "yes";
|
content: "yes";
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-image:url('img/mp3.png');
|
background-image:url('../img/mp3.png');
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
background-position:right top;
|
background-position:right top;
|
||||||
width:73px;
|
width:73px;
|
||||||
|
@ -400,7 +400,7 @@ margin:0 auto 10px auto;
|
||||||
{
|
{
|
||||||
width:447px;
|
width:447px;
|
||||||
height:107px;
|
height:107px;
|
||||||
background-image:url('img/logocompatible.png');
|
background-image:url('../img/logocompatible.png');
|
||||||
background-repeat:repeat-y;
|
background-repeat:repeat-y;
|
||||||
background-position:0 0;
|
background-position:0 0;
|
||||||
-webkit-transition: all 0.1s ease-in;
|
-webkit-transition: all 0.1s ease-in;
|
||||||
|
@ -426,7 +426,7 @@ top:0;
|
||||||
left:0;
|
left:0;
|
||||||
width:447px;
|
width:447px;
|
||||||
height:107px;
|
height:107px;
|
||||||
background-image:url('img/logocompatiblemask.png');
|
background-image:url('../img/logocompatiblemask.png');
|
||||||
background-position:0 100%;
|
background-position:0 100%;
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
}
|
}
|
4
head.php
4
head.php
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name=viewport content="width=device-width, initial-scale=1">
|
<meta name=viewport content="width=device-width, initial-scale=1">
|
||||||
<meta name="description" content="Easily download videos from Youtube, Dailymotion, Vimeo and other websites." />
|
<meta name="description" content="Easily download videos from Youtube, Dailymotion, Vimeo and other websites." />
|
||||||
<link rel="stylesheet" href="style.css" />
|
<link rel="stylesheet" href="dist/main.css" />
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="https://fonts.googleapis.com/css?family=Open+Sans:400,300" />
|
href="https://fonts.googleapis.com/css?family=Open+Sans:400,300" />
|
||||||
<link rel="author" href="https://plus.google.com/110403274854419000481?rel=author" />
|
<link rel="author" href="https://plus.google.com/110403274854419000481?rel=author" />
|
||||||
|
@ -22,7 +22,7 @@ href="https://fonts.googleapis.com/css?family=Open+Sans:400,300" />
|
||||||
<meta name="twitter:creator" content="@Tael67" />
|
<meta name="twitter:creator" content="@Tael67" />
|
||||||
<meta name="twitter:description" content="Easily download videos from Youtube, Dailymotion, Vimeo and other websites." />
|
<meta name="twitter:description" content="Easily download videos from Youtube, Dailymotion, Vimeo and other websites." />
|
||||||
<script type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
|
<script type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
|
||||||
<script src="cast.js"></script>
|
<script src="dist/main.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
|
10
package.json
Normal file
10
package.json
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"name": "alltube",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"devDependencies": {
|
||||||
|
"grunt": "^0.4.5",
|
||||||
|
"grunt-contrib-cssmin": "^0.10.0",
|
||||||
|
"grunt-contrib-uglify": "^0.6.0",
|
||||||
|
"grunt-contrib-watch": "^0.6.1"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue