Comments (51)
Erase line 675 of js/snake.js file. @Joshii01
from javascript-snake.
@Joshii01 see @mamamia5x's comment above.
from javascript-snake.
i seem to be having an issue, i removed line 675 which was this: elmAboutPanel.innerHTML = "<a href='http://patorjk.com/blog/software/' class='snake-link'>more patorjk.com apps</a> - <a href='https://github.com/patorjk/JavaScript-Snake' class='snake-link'>source code</a> - <a href='https://www.instagram.com/patorjk/' class='snake-link'>pat's instagram</a>";
but the social links still appear so what should i do?
from javascript-snake.
Make sure line 107 of Index.html says <script type="text/javascript" src="./js/snake.js"></script>
and not
<script type="text/javascript" src="./js/min-snake.js"></script>
from javascript-snake.
i checked, yet that didnt change anything it still shows the links
Here is a picture of the snake.js file on line 675 and also a picture of the index.html at line 107:
from javascript-snake.
The script looks right, is it saved right? Right something to the html file like add "test" to line 90.
If it saved and works, it should display test in front of the save button. If it works and the social links don't work, it might be a compiler issue.
from javascript-snake.
yes it is saved, but it still shows the social links on the bottom.
here is a picture of the snake game and the html file at line 90:
from javascript-snake.
My version is here https://javascript-snake-8.mamamia5x.repl.co/
Copy and paste the content at view-source:https://javascript-snake-8.mamamia5x.repl.co/ into the html file and then copy and paste the content at https://javascript-snake-8.mamamia5x.repl.co/js/snake.js to the js/snake.js file.
Hopefully this solves the problem.
from javascript-snake.
I copy pasted that but it still shows the links at the bottom of the page what should i do?
from javascript-snake.
I really don't know. . .
Mine works just fine https://javascript-snake-8.mamamia5x.repl.co/
Try using a different compiler (like repl.it)
from javascript-snake.
ok! let me try that real quick
from javascript-snake.
for some reason repl.it only shows this when i run the code:
from javascript-snake.
@patorjk please help, i would really like to use this in my website
from javascript-snake.
Try replacing the index.html with the original file.
from javascript-snake.
if that doesn't work, try doing the original script file and then making line 675 a comment.
from javascript-snake.
ok! give me a second while i try that
from javascript-snake.
I tried that but it still would show the links on the bottom
from javascript-snake.
Go to here https://repl.it/@mamamia5x/JavaScript-Snake-8
from javascript-snake.
And then just fork it
from javascript-snake.
ok!
from javascript-snake.
I tried that but it doesnt seem to be working as well
from javascript-snake.
Are you on the right site, or are you looking at the official site? 'Cuz if you go to https://javascript-snake-8.mamamia5x.repl.co/ it won't show up.
from javascript-snake.
I am looking at my site which i am running the code on
from javascript-snake.
What is the url to the site?
from javascript-snake.
http://snakegame.selync.ga/?i=2
from javascript-snake.
Alright, it looks like the JS file is messed up. Can you reset the whole site to make it even to the github?
from javascript-snake.
alright!
from javascript-snake.
In JavaScript-Snake-master/ go to script.js and then paste the content in https://javascript-snake-8.mamamia5x.repl.co/js/snake.js
from javascript-snake.
alright!
from javascript-snake.
done!
from javascript-snake.
Alright, it looks good!
from javascript-snake.
what should i do know?
from javascript-snake.
What do you mean?
from javascript-snake.
how do i remove the social links now?
from javascript-snake.
from javascript-snake.
That's your site
from javascript-snake.
did you do inspect element? because on my side it shows this:
from javascript-snake.
Are you on http://snakegame.selync.ga/?i=2
from javascript-snake.
Yes
from javascript-snake.
It doesn't show the social icons, try going on a different browser
from javascript-snake.
i only have google chrome right now
from javascript-snake.
Alright, but it works completely fine on my end.
from javascript-snake.
are you sure you didnt inspect element? because how else would you be able to edit the code on my site?
from javascript-snake.
I reloaded the page, and it doesn't show anything.
from javascript-snake.
weird, but may i ask how you edited the code on my site?
from javascript-snake.
I didn't (if I would edit it, I would use dev tools).
Open it up in a new tab. http://snakegame.selync.ga/?i=2
from javascript-snake.
i did, it still shows the links on the bottom
from javascript-snake.
Idk what's happening then. Everythings working fine for me.
from javascript-snake.
so is there anything i can do on my end to fix it?
from javascript-snake.
Probably not, or not anything that I know of.
from javascript-snake.
alright then! thanks for your help and your time! i will try and check the site on some other browsers later on.
from javascript-snake.
Related Issues (20)
- vvbh
- Too Fast HOT 3
- Snake-game multiplayer HOT 4
- I need wasd keys PLEASE HOT 2
- No package.json HOT 1
- Make highscore be permanently visible at the bottom
- Input Edge Case Issue HOT 1
- Game crashes when snake fills up board HOT 6
- Highscore check doesn't seem to work anymore HOT 1
- Add pause button HOT 2
- Add gamepad support
- New Theme HOT 1
- Snake collision HOT 3
- Wait for an arrow-key press after coming out of pause.
- Snake's head should be a different color. HOT 2
- Snake's body should be visibly joined together
- Theme selector dose not display correct theme
- Pause when user moves to a different tab HOT 2
- Add allcontributors section HOT 34
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript-snake.