#JQuery Website build
1 messages · Page 1 of 1 (latest)
@drowsy nimbus no DMs allowed in this server. Just post your questions in this thread and people will help if they can
I know jquery
okay
so
cheshire
@junior flame
ive made a website
its uses jquery
i dont know anything about jquery
okay, so this is a website you made and you picked jquery despite not knowing anything about it?
i'm confused, why did you choose to use jquery?
i didnt, i got the source from my friend
it already used jquery
i edited a bit of stuff
under my knowledge span
but now i need your help
okay, so your friend made the website and you're just trying to edit it
JUST READ, ask questions when i finish, or ill ping you when im done writing. is that okay?
I am not sure why you don't just make the website yourself without jquery, but let's continue
yea
the website, it uses jQuery attributes one of them is a link attribute, this attribute shows up same on every page. WHAT I WANT TO DO IS- i wanna change that link attribute to a text attribute while keeping the style and animation same and i also what it to show different on every page by copy pasting the text attribute that we will create and tweaking them a bit
@junior flame
show the relevant code
okay, i can show relevant code in html i am not sure about jQuery
give me a sec
console.log(StickyShowcase);
const Showcase = StickyShowcase({
data: [{
image: "https://assets.website-files.com/5cae580b70e3e817d963cb90/5da0b27f718f3524ffb0ba9c_MadeByStudioJQ-1-min.jpg",
meta: "#iamconfused",
title: "CONFUSED"
}, {
image: "https://assets.website-files.com/5cae580b70e3e817d963cb90/5da0b27fa2544098c8a0093b_MadeByStudioJQ-2-min.jpg",
meta: "#whoami",
title: "ABOUT ME",
link: "https://dribbble.com/shots/7305254-The-Crop"
}, {
image: "https://assets.website-files.com/5cae580b70e3e817d963cb90/5da0b27feeb3d5365e396a72_MadeByStudioJQ-5-min.jpg",
meta: "#MadeByStudioJQ",
title: "ALIGN",
link: "https://dribbble.com/shots/7226815-Align"
}, {
image: "https://assets.website-files.com/5cae580b70e3e817d963cb90/5da0b27f43b23dd01b9afa77_MadeByStudioJQ-4-min.jpg",
meta: "#MadeByStudioJQ",
title: "HEAVENS DOOR",
link: "https://dribbble.com/shots/7287442-Heaven-s-Door"
}, {
image: "https://assets.website-files.com/5cae580b70e3e817d963cb90/5da0b27fa254406c14a0093a_MadeByStudioJQ-3-min.jpg",
meta: "#MadeByStudioJQ",
title: "SUSPECT",
link: "https://dribbble.com/shots/7269161-Suspect"
}],
containerId: "app",
waveOptions: {
speed: 0.6,
frequency: 16,
amplitude: 1.5,
}
});
</script>```
thats the html side
That's not HTML
i mean thats whats in the html file
okay, just continue and we'll figure it out
a = i("h1", "slide-title"),
r = i("p", "slide-meta"),
l = i("a", "slide-more");
return l.href = e.link, t.classList.add(0 !== s ? "next" : "show-meta"), r.innerHTML = e.meta, a.innerHTML = e.title, l.innerHTML = "hello", t.appendChild(r), t.appendChild(a), t.appendChild(l), n.container.appendChild(t), t```
this is what i think jquery side looks like
the attribute
is
@drowsy nimbus
this may be the attribute
i mean I know what that return does but that's really odd
not sure why your friend wrote it that way..
i have no idea what you are talking about, u guide me on this
i have no idea what to make of the gist you uploaded
is that in a .js file in your code somewhere?
yes
did your friend use something to generate this code?
what does the website do?
i was flabbergasted when i saw the code for the first time
just a website
about me
portfolio ig
what is the javascript for?
frankly, the code is a mess and i don't know if your friend possibly used something to generate it that it looks like that. If you want small changes made then i would simply ask your friend to make the changes since they coded it in the first place.
hmmm
oh, so there is like a mouse effect on the page, okay
but firstly you should know that none of what you showed me looks remotely like jquery lol
lmao really?
yeah
seriously, if your friend coded it and i assume this is on your friend's portfolio (their dribbble page it links to) just ask them to make the changes, they actually know how it works
he actually didnt make it from scratch
he got a sample from github which he tweaked that then handed it over to me
bro really said use it if u can manage to change it
cuz he couldnt himself
okay, this is not simple jquery and it would be helpful to see the github that he got it from because that github might explain how it works
i'm not able to reverse engineer this
here
the website looks cool tho right?
HUH
says it right on that github
that's going to be more complicated to learn but i would start with a three.js tutorial, then look through the code in that github and try to understand it from there. The code looked generated to me because it is, it's the output of npm run build, so don't look at the code in your website because it's the output of the compilation and not your actual source code. If possible, get the source code from your friend (how did they modify the github code, prior to running npm run build on it)
but otherwise it should be simple to modify that github yourself to get to the same place tbh (it looks like your website is exactly the same just with different text and images)
just ignoring everything i said, do u know how i can change the read more text on the website to text while keeping style same
the article on codrops (linked in the github readme) explains how the effect works.
im not bothered to read that, its gonna lead me to nowhere without basic knowledge
sorry, I don't understand what you mean... change the read more text to text? what does that mean
thats thing is a hyperlink rn
i wanna change it to text
you just want to get rid of the hyperlink? so it says "read more" but you can't click it?
and make it so that its different on every page
i can click it, like i wanna type things about me there as this is a portfolio website
i actually managed to change the text of hyperlink but because that is single attribute it shows up same on every page
i want it to be text instead of hyperlink
and different on pages
well it's impossible to say without being able to see your friend's actual code for it (not the compiled output)
this seems to be where it's set in the github you linked, but your friend has clearly changed it https://github.com/Anemolo/StickyImageEffect/blob/master/js/Slides.js#L21
if you read that code, you'll see that it's getting data in the constructor of slides and then mapping over that where each one is entry, so you'd want to set the more on each entry and use something like entry.more instead of hard coding it
.
^
how to do that
but regardless, get the source code from your friend before you try to do this
what if i ignore my friends code and u guide me based on this repo
you need to get the actual source code, make the changes there and run npm run build and then replace the files
AND i already made my mind to switch to the repo but when i open the base.html nothing works
i just see a
screen with gradient
that's not how you run it... read the readme
i did try to install npm but it just showed react.js logo
you need to run npm install and then npm start to start the development server, then you can view it in your browser
but anyway, did you understand this?
yeah
because look here: https://github.com/Anemolo/StickyImageEffect/blob/master/js/index.js
that's where the slides are defined
const slidesData = [
{
image: image1,
title: "Segovia",
meta: "Spain / Castile and León"
},
{
image: image2,
title: "Barcelona",
meta: "Spain / Catalonia"
},
{
image: image3,
title: "Málaga",
meta: "Spain / Andalusia"
},
{
image: image4,
title: "Pamplona",
meta: "Spain / Navarre"
},
{
image: image5,
title: "Bilbao",
meta: "Spain / Biscay"
}
];
so each one currently has an image, title, and meta
how do i add text
If you look back in this file: https://github.com/Anemolo/StickyImageEffect/blob/master/js/Slides.js#L19
It uses those as entry.meta, entry.title and so on
I'm literally telling you
so i make entity.text ?
okay, well i'm about done with this so let me give you a few more pointers
https://github.com/Anemolo/StickyImageEffect/blob/master/js/Slides.js#L16
this is where it creates the more element, later on it does more.innerHTML = 'Read more'; so you understand now where the more variable is created
so if you want to add read more text, where if you click the "read more" then it shows you the extra paragraph of text underneath it, you will want to create an extra element here to hold your text, then add js for the hide/show functionality, which is a little more complicated
no no no
i just wanna remove the hyperlink
only text
you just want it to say "Read more" and not be clickable?
yea
ok I am confused what exactly you want to do, but i feel like i've given you enough pointers to do it anyway
i thought you were cheshire
the key is to know where that is being set, and it's in that code above
i cant find any tutorial on how to use npm
can u give me overview
what to do after this
@junior flame
sry for ping
do u mind ping?
what have you done so far? also there's like a billion tutorials on how to use npm...
they all use vs code
i dont wanna use vs code
i have just typed
npm install
npm start
but how and where to put my files
how to deploy
did you type those commands inside the github repository?
you need to clone the github repository, it will create a folder called StickyImageEffect with the github code inside of it. Then you need to run those commands inside of that StickyImageEffect directory.
you need to run npm install first, and then npm start
why dosent anyone tell this, or i am just too dumb
it says it in the readme, but you have just never worked with npm before so i understand it's confusing.
basically, you need to be in the project directory first so that the npm commands know which project the command is being used for.
npm install will install the project's dependencies. that is, the libraries and stuff that your project uses.
npm start will start the local development server.
the error you got about "parcel" not being recognized, is because parcel is one of the dependencies, and you didn't run npm install so it didn't have the dependencies yet.
it is supposed to hang after you run npm start
because it's started the development server, and will keep running it until you quit it
i ran npm install
it fixed
but this
it says something realted to python
do i need to install python?
no, it says it's a permissions issue trying to rm the corejs directory
i have no idea about that. let me try on my end.
@drowsy nimbus
this is a very old package (4 years old) so it could be some things are out of date
hmm, yeah I don't know what your problem is. I have no problem running it. All I did was download the github code, run npm install followed by npm run start and it runs with no issues.
I am doing this in WSL though, it might be a windows compatibility issue
though idk if you want to set up WSL just for this (honestly i recommend it for development on windows in general but yeah)
ok looking at your gist now, that does seem like a python problem.... i feel like I have seen this before.. let me research
it says in the corner few dependencies may not work as they are old
why dont they make these stuff bold man
its soo hard to read
;-;
i don't think that's your issue
i think your issue is related to trying to run nodejs on windows... i'm trying to find some info about this
Try this
Install all the required tools and configurations using Microsoft's windows-build-tools by running npm install -g windows-build-tools from an elevated PowerShell (run as Administrator).
And try installing Python 3
Yeah I was researching this
If you're gonna give me attitude i'll stop helping
I was trying to figure out why nodejs is requiring python at all
WHAT
it's very dumb that you have to install python for a project like this
I DIDNT GAVE ATTITUDE
but you can try
here's the official instructions from node-gyp, probably this is the best thing you can try: https://github.com/nodejs/node-gyp#on-windows
what is wsl?
windows subsystem for linux
u r on linux?
these things are soo dumb
Developers can access the power of both Windows and Linux at the same time on a Windows machine. The Windows Subsystem for Linux (WSL) lets developers install a Linux distribution (such as Ubuntu, OpenSUSE, Kali, Debian, Arch Linux, etc) and use Linux applications, utilities, and Bash command-line tools directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup.
ooo
just follow these instructions , under the windows section, and try again
no you don't
that's the visual c++ build environment and visual studio, not VSCode
“Visual Studio” and “Visual Studio Code” are not the same thing. Visual Studio is an integrated development environment (IDE) and Visual Studio Code is a rich text editor like Sublime Text and Atom.
but you're just trying to get the c++ build environment
i would just install python first and see if that alone fixes your issue, then install the visual c++ stuff if it still doesn't work
kind of taking shots in the dark because i don't develop on windows itself pretty much for this reason.
its 6.6 gb download
im ditching this website idea
ill go back and play minecraft
jesus
yeah i think if you wanted to do this, you could try making it yourself from scratch without using the npm version on github, by following the codrops tutorial
it's a bit advanced though, fancy effect
honestly, if you want to do development on windows of any kind, WSL is not a bad idea to get set up at some point
WSL Ubuntu
i really don't like development on just windows itself, feels like you run into a lot of issues like what you did today
yes alot
i have to download 100 things before getting my first error
and then more 50 things to get 2nd error
then ditching the plan and deleting all the stuff
yeah and honestly i find even when you do have to install things it's a lot easier on linux because it's usually like one command
three.js does look fun if you ever want to learn it
start with just vanilla javascript though if you don't know that yet
eh
anyway, there is something off topic i want to ask about
why does discord say you are suspected to be part of an online terrorist organization
there's a hover over your name that says this
how did that happen to you lol
but nothing shows up when i try to hover over my own name
i wasn't sure if it was just your about text
lmao
and nothing shows up when i hover over anyone else's name either
so how did you get it to show up when you hover, if it's just something you copy pasted
lol no thanks, i don't want people reporting me to discord for being a terrorist LOL