Skip to content

Commit

Permalink
added css and cheet.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aytic committed Jun 19, 2018
1 parent 2c91e5d commit 3ef4aeb
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion assets/css/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ h6 {

* {
letter-spacing: 0.04em;
cursor: url(./img/schmusercursor.png), auto !important;
}

.flex-grow {
Expand Down
3 changes: 3 additions & 0 deletions assets/css/easteregg.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* {
cursor: url(./img/schmusercursor.png), auto !important;
}
7 changes: 7 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,12 @@
});
})(jQuery);

import cheet from 'cheet.js';
cheet('s c h m u s', function () {
alert('god mode enabled');
$("[data-href]").attr('href',$("[data-href]").data('href'));
cheet.disable('s c h m u s');
});

import './pages/landing.js';
import './pages/gallery';
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"dev": "encore dev",
"watch": "encore dev --watch",
"build": "encore production"
},
"dependencies": {
"cheet.js": "^0.3.3"
}
}
1 change: 1 addition & 0 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
{% block stylesheets %}
<link rel="stylesheet" href="{{ preload(asset('build/css/app.css'), { as: 'style' }) }}">
{% endblock %}
<link rel="stylesheet" data-href="{{ asset("css/easteregg.css") }}" />
</head>
<body>
{% block nav %}
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Encore
// uncomment to define the assets of the project
.addEntry('js/app', './assets/js/app.js')
.addStyleEntry('css/app', './assets/css/app.scss')
.addStyleEntry('css/easteregg', './assets/css/easteregg.scss')

// uncomment if you use Sass/SCSS files
.enableSassLoader()
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,10 @@ chalk@^2.4.1:
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"

cheet.js@^0.3.3:
version "0.3.3"
resolved "https://registry.yarnpkg.com/cheet.js/-/cheet.js-0.3.3.tgz#c98e5fdefc8c6241a1cd6dcf71a09b063887daed"

chokidar@^2.0.0, chokidar@^2.0.2:
version "2.0.3"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.3.tgz#dcbd4f6cbb2a55b4799ba8a840ac527e5f4b1176"
Expand Down

0 comments on commit 3ef4aeb

Please sign in to comment.