Skip to content

Commit

Permalink
Add Console message ascii art (forem#2392) [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocsee authored and maestromac committed Apr 16, 2019
1 parent d45f2c5 commit c6ee9fe
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/assets/javascripts/hello-dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var bigDev =
' \n \
\n \
-oooooooo/- .+ooooooooo: +ooo+ oooo/ \n \
+MMMMMMMMMMm+ -NMMMMMMMMMMs +MMMM: /MMMM/ \n \
+MMMNyyydMMMMy /MMMMyyyyyyy/ mMMMd mMMMd \n \
+MMMm :MMMM. /MMMN /MMMM/ /MMMM: \n \
+MMMm .MMMM- /MMMN dMMMm mMMMh \n \
+MMMm .MMMM- /MMMMyyyy+ :MMMM/ +MMMM- \n \
+MMMm .MMMM- /MMMMMMMMy hMMMm NMMMy \n \
+MMMm .MMMM- /MMMMoooo: -MMMM+oMMMM- \n \
+MMMm .MMMM- /MMMN yMMMmNMMMy \n \
+MMMm +MMMM. /MMMN .MMMMMMMM. \n \
+MMMMdddNMMMMo /MMMMddddddd+ sMMMMMMs \n \
+MMMMMMMMMNh: .mMMMMMMMMMMs yMMMMs \n \
.///////:- -/////////- .::. \n \
\n \
\n';
console.log(
bigDev,
"Hey there! Interested in the code behind dev.to? Well you're in luck - we're open source! Come say hi, tell us what you're debugging, or even lend a hand in our repo - https://github.com/thepracticaldev/dev.to/"
);
1 change: 1 addition & 0 deletions app/views/layouts/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
</div>
</div>
</footer>
<%= javascript_include_tag 'hello-dev.js' , async: true %>
1 change: 1 addition & 0 deletions config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
Rails.application.config.assets.precompile += %w[minimal.css]
Rails.application.config.assets.precompile += %w[s3_direct_upload.css]
Rails.application.config.assets.precompile += %w[base.js]
Rails.application.config.assets.precompile += %w[hello-dev.js]
Rails.application.config.assets.precompile += %w[s3_direct_upload.js]

Rails.application.config.assets.precompile += %w[lib/xss.js]
Expand Down

0 comments on commit c6ee9fe

Please sign in to comment.