Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Stackoverflow lets you onyl ask some questions in a week, lets change it!
first question
How to make spoiler in JS, help me please making one!
http://codepen.io/OfficialAntarctica/pen/gMLPpy/ (I am using the SCSS pre-processor, click 'View Compiled' for CSS)
There are 2 type I can think of, one which shows on hover (like on Reddit) and another that you click to show (like the one on the forums)
HTML
<div><div>Type 1:</div><spoiler>Someone dies in GOT</spoiler></div>
CSS
spoiler {
background-color: #000; /*Same colour as text*/
}
spoiler:hover { /*When you hover over the element with your cursor*/
background-color: transparent; /*Hides the obscuring colour*/
}
HTML
<spoiler type="dropdown"><div class="title">Spoiler Title</div><div class="body">Something very very frightning</div></spoiler>
CSS
body spoiler[type="dropdown"] {
display: block; /*The spoiler to not be in line with text and take up the whole width permitted by the parent*/
border: 1px solid #AAB2BD; /*Just so you know what the spoiler contains - I haven't added more styling than necessary*/
}
body spoiler[type="dropdown"] > .title {
cursor: pointer; /*To show that you can click to open*/
}
body spoiler[type="dropdown"] > .title:before {
content: '▼'; /*This is displayed before the title and shows it expands downwards*/
}
body spoiler[type="dropdown"] .body {
display: none; /*Hides the text when closed*/
}
body spoiler[type="dropdown"].open > .title:before {
content: '▲'; /*Shows the spoiler can close, it replaces the down arrow*/
}
body spoiler[type="dropdown"].open .body {
display: initial; /*Show text*/
}
I'm using jQuery because there's no need to fiddle around with something simple like this
JavaScript/jQuery
$("spoiler >.title").click(function(){ /*When an object with the class "title" and is a direct child of a spoiler element then the function will activate*/
$(this).parent().toggleClass("open"); /*If the parent of the clicked object does not have the class "open" it will be given it and if it does have it then it will be removed*/
});
Edit: added some styling to make it less gross
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
As far as i know you can't create tags in html, spoiler isn't existing actually
As far as i know you can' create tags in html, spoiler isn't existing actually
With HTML5 you can make any tag, just by default it has the same styling as a span tag (inline).
<thisisfine></thisisfine>
If you look at the CSS I have styled it there, look in my first post.
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
It's not valid but technically nothing's stopping you from doing it.
It is valid however, have to be careful about future-proofing but I can say for certainty that '<spoiler>' will not become a w3 html element.
It's a part of HTML5 that this is valid.
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
OK, please someone explain me how to code javascript plugins
I want them for ProBoards
OK, please someone explain me how to code javascript plugins
I want them for ProBoards
Why can't you use their forum and ask there instead?
I don't really see a reason that I need to learn their Javascript API. Just to "help" you.
Offline
We are here to help with general web-based programming but nothing specific like you are asking for; while I'm happy to help with any HTML, CSS and JavaScript for "gadgets", nothing that requires specialised knowledge.
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
AnatolyEE wrote:OK, please someone explain me how to code javascript plugins
I want them for ProBoards
Why can't you use their forum and ask there instead?
I don't really see a reason that I need to learn their Javascript API. Just to "help" you.
I am banned on their support forum. (permament + IP banned)
capasha wrote:AnatolyEE wrote:OK, please someone explain me how to code javascript plugins
I want them for ProBoards
Why can't you use their forum and ask there instead?
I don't really see a reason that I need to learn their Javascript API. Just to "help" you.I am banned on their support forum. (permament + IP banned)
Try a different forum service and don't get banned...
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
capasha wrote:AnatolyEE wrote:OK, please someone explain me how to code javascript plugins
I want them for ProBoards
Why can't you use their forum and ask there instead?
I don't really see a reason that I need to learn their Javascript API. Just to "help" you.I am banned on their support forum. (permament + IP banned)
jesus christ what did you do
Offline
If going trough your projects Koya, this can be forund. - Bombot all palyer list.
AnatolyEE wrote:capasha wrote:AnatolyEE wrote:OK, please someone explain me how to code javascript plugins
I want them for ProBoards
Why can't you use their forum and ask there instead?
I don't really see a reason that I need to learn their Javascript API. Just to "help" you.I am banned on their support forum. (permament + IP banned)
jesus christ what did you do
i don't know, really.
p. s. this one is cool
If going trough your projects Koya, this can be forund. - Bombot all palyer list.
Kirby wrote:AnatolyEE wrote:capasha wrote:AnatolyEE wrote:OK, please someone explain me how to code javascript plugins
I want them for ProBoards
Why can't you use their forum and ask there instead?
I don't really see a reason that I need to learn their Javascript API. Just to "help" you.I am banned on their support forum. (permament + IP banned)
jesus christ what did you do
i don't know, really.
vpn?
Offline
capasha wrote:AnatolyEE wrote:OK, please someone explain me how to code javascript plugins
I want them for ProBoards
Why can't you use their forum and ask there instead?
I don't really see a reason that I need to learn their Javascript API. Just to "help" you.I am banned on their support forum. (permament + IP banned)
Didn't know you could be permament banned. But I'm not going to tell how to bypass.
Because I don't want you to make new accounts here because you get banned every week or so.
Offline
option[color] {
color:attr(color);
}
I am trying to get the color attribute and make it color
<option> is a part of the <select> box. How to fix?
Reason bumping: Not answered and fallen
option[color] { color:attr(color); }
I am trying to get the color attribute and make it color
<option> is a part of the <select> box. How to fix?
Doesn't google work for you? Most times google have the result for me. Why doesn't it work for you?
Offline
Doesn't google work for you? Most times google have the result for me. Why doesn't it work for you?
1) I didn't said that it doesn't work. It works!
2) I didn't said that i use it. (But, I use.)
But: I already found the answer
I don't know anything about SCSS. But why would you use a function inside a function?
Offline
capasha in normal css it would be
obj1 obj2 {
/* acess to attribute from obj1 not possible, obj2 possible */
}
Can't even find a tutorial about SCSS. Why do you need it anyway?
Offline
Can't even find a tutorial about SCSS. Why do you need it anyway?
Normal css:
capasha in normal css it would be
obj1 obj2 { /* acess to attribute from obj1 not possible, obj2 possible */ }
I own a FQDN and I wish I could setup a mail server. Does somebody know how?
P.S. The machine is running Raspbian as OS(a Debian but for arm processors). I tried Postfix and I managed to make it work locally. However real mail servers(Yahoo, Gmail etc.) are refusing my connections(? as it says in the log files).
Side-note: My ISP is currently blocking port 25 but I think Yahoo and Gmail also accepts connections on ports 465 and 587, right?
Everybody edits, but some edit more than others
Offline
[ Started around 1739081368.7701 - Generated in 0.092 seconds, 12 queries executed - Memory usage: 1.81 MiB (Peak: 2.08 MiB) ]