#var js
Explore tagged Tumblr posts
krisztapwonderland · 11 months ago
Text
Please check out my Poshmark closet!
Please check out my favorite poshers as well below.
THANK YOU SO MUCH!
1 note · View note
robindavis · 1 year ago
Text
Shop more of my listings on Poshmark
0 notes
max1461 · 1 year ago
Text
I think every programming language is stupid and full of syntax "sugar" that isn't even sugar. Random bullshit that violates the established conventions of how the language works without actually making anything simpler or easier. Look, I'm not a coder. But I just learned that JS has a variable declaration thingy
var <variable name> = <value>
that automatically moves the variable declaration to the top of the scope, as opposed to
let <variable name> = <value>
which doesn't. Ok, why have that? Why have that. That's so fucking dumb. Maybe they differ in some other way that actually makes sense, idk, but even if they do why add this additional difference.
Where's what I think. A programing language should have exactly one way to do everything. Maybe a couple if there's a really good reason in terms of convenience/readability. If you do not have a really good reason, only have one. Furthermore, a programming language should make the underlying program tree as transparent as possible. A written program should be, to the greatest extent possible, in complete isomorphism with the program logic. It should have the same order, the same nesting, the same everything. I should be able to see the logic just by glancing at it.
Everything else is stupid.
There are competing needs that matter: technical fidelity (written code clearly represents what is actually happening when a computer executes a program) and mathematical fidelity (written code clearly represents the abstract mathematical structure of a program). I get that these sometimes trade off against each other, and that's fair. It's reasonable to draw that line in different places. But everything else? Stupid, absolutely stupid. Concessions not to nature but to man. Needless frivolity.
87 notes · View notes
immadatdisney2 · 2 months ago
Note
You can’t mention a vat7k pirate fairy au and not eleborate PLEASE PLEASE PLEASE YAP ABOUT IT 🙏
(Not actually forcing you to ofc I js love the pirate fairy it’s my favorite one)
*cracks knuckles in fanfic powers* I've been summoned 😈😈😈
Okay, so I havnt thought abt this au in a good long while so it's kinda jumbled and shit and VERY basic, but take it or leave it people.
So Hugo would be a fast-flying fairy because all of them are assholes (in the best way) and it would help him do the whole thieving thing plus he would totally love passing people off with tornados.
Idrk what kinda fairy Varian would be, it feels really basic saying he's a tinker and I kiiiiinda see him as a water fairy but it's eh for me and for the purpose of this au, he's a dust keeper
(Yong would be an animal fairy and Nuru a light fairy but that's not important for this)
So in this, Varian and Zarina (I really hope I spelled that right 💀) are besties, Hugo's decently close to her but again not important and in this Quirin is co-head of the Dust Keepers with my man Fairy Gary (dude I LOVE Fairy Gary) and they're know for being really curious with the pixie dust (Hugo also likes tinkering and scienceing with them but hides it to look cool because plot purposes) and they want to try and find new colors of pixie dust, just like in the movie.
The same things as the movie would ensue, yada yada yada (Varian also argues with his dad abt wanting to make him proud and along with the giant plant, I kinda wanna do some Moonstone parallels but idk) and when she's about to leave pixie hallow, he convinces her to go with them (without telling Hugo, despite having a crush on him and leaving him heartbroken)
Also the Saporians are also with the pirate crew
So then, years later just like in the movie both of them return, steal the blue dust but Hugo (who was smart and recognized the science shit Var was doing and used his wind powers or stm to keep his air clean from the pollen) convinces them to let him come with (idk who his powers would switch to yet, comment down below I guess) and he would try and snap Varian outta his villain arc!<3
...fuck I'm gonna have to write this now don't I, great.
-ImMadAtDisney <3
10 notes · View notes
o-sachi · 10 months ago
Note
Blue Lock (Wind Breaker) men and Filipino food?
Filo Food Headcanons (Var. Bllk & WinBre)
[🐟]: @kajibunny and I were js talking about this the other day xd
Blue Lock
I immediately think of Sae because Spanish food and Filipino food aren't all that different, right? Like in the morning you can have a breakfast of pan de sal and mechado. Then for lunch you can have menudo. Lastly, for dinner, pochero?
I just know he likes Spanish food. I mean, I know I do. Who doesn't?
Bachira and Shidou would definitely not be shy about taking home food from parties. Trust that they will have a plastic bag in each hand filled with food.
Bachira especially likes the hotdogs on the stick with cute marshmallows on the top that they serve at birthday parties lol.
Otoya's favorite food is sinigang because it has the word "gang" in it and he finds it funny.
I know Isagi will LOVE Filipino desserts. Halo-halo, leche flan, bibingka—he'll have it all.
Isagi discovers that the sweet style Filipino spaghetti is insanely good.
Reo can't fathom the idea of banana ketchup...
Karasu enjoys boodle fights (bunch of food is laid out on a banana leaf and people eat on the leaf as well; usually done at fiestas)
Wind Breaker
Sakura is a streetfood enjoyer. He was initially afraid of isaw (chicken intestines) but he reallyyyyy likes it now.
Nirei is more of a kwek-kwek (quail eggs fried in batter) enjoyer.
Hiragi can't have streetfood because he's scared it'll upset his stomach.
Once he saw a lechon laid out on a table, Ume was smitten by it. The most delicious thing he has tried ever.
On that note, Ume loves the atmosphere of how Filos gather together over food. We love to bond over food after all and he fw that.
I have a feeling Kaji would be a bit picky with our food though...
Like the cultured man that he is, Suo would love to learn how to cook certain dishes.
Choji also loves taking food home without any shame lolol.
Togame would fit right into our food culture because he loooooves eating.
I might expound on these ideas more eventually...
14 notes · View notes
necromancercoding · 7 months ago
Note
¡Hola, Necro! ¿Qué tal? ¿Podrías explicar cómo hacer esto que dijiste en la recapitulación de las actualizaciones de FA: "ahora podemos usar _userdata. groupcolor para crear nuestra variable de groupbody"? Gracias de antemano <3
¡Hola anon! Es super sencillo, se usa similar a como se usaba antes el mod_login.
Primero que nada, tendremos que protegernos para que cuando entre un invitado o alguien sin color asignado, tenga un color que pueda enganchar el JS. Para eso, vamos a usar un bloque if que cheque esta situación y redeclare el groupcolor:
if (_userdata.groupcolor.length === 0){ _userdata.groupcolor = '666666'; }
Con esto, ya podrías usar el groupcolor, aunque a mí me gusta normalizarlo en lowercase para poder usarlo en reglas de @/container y similares:
var bodyColor = _userdata.groupcolor.toLowerCase(); $('body#phpbb').prepend('<style>:root { --groupbody:#'+bodyColor+'; }</style>');
Y ya lo tendrías 😁
PD: Recuerda meter todo el JS dentro de un $(function(){ aquí }); y marcarlo para todas las páginas.
7 notes · View notes
soophia-studies · 2 years ago
Text
100 days of code - day 18
02.11.23
Hi there 😊
Today I continued studying JS Arrays, and learned new things, I also did some exercises to practice using arrays and objects, like: checking if a string is a palindrome, calculating Fibonacci, searching for objects in an array and so on.
I learned four new methods:
.some() checks if at least one item in the array matches the condition, and return true or false. .every() checks if all items in the array matches the conditions, return true or false. .find() search and return the first element that satisfies the conditions. .findIndex() same as above, but return the index of the element in the array.
Also, I learned a tip today, and I think it is useful. When you use console.log() to print a variable when debugging you don't need to write console.log("var: " + myvar); to track the print, if you put curly brackets like console.log({myvar}); It will generate a fancy print with the var name and its value.
Tumblr media
Output:
Tumblr media
That's it, I've finished the learning modules, and there's only one project remaining to conclude the foundation course.
Tumblr media
25 notes · View notes
ahad-hossain-blog · 6 months ago
Text
JavaScript
Introduction to JavaScript Basics
JavaScript (JS) is one of the core technologies of the web, alongside HTML and CSS. It is a powerful, lightweight, and versatile scripting language that allows developers to create interactive and dynamic content on web pages. Whether you're a beginner or someone brushing up on their knowledge, understanding the basics of JavaScript is essential for modern web development.
What is JavaScript?
JavaScript is a client-side scripting language, meaning it is primarily executed in the user's web browser without needing a server. It's also used as a server-side language through platforms like Node.js. JavaScript enables developers to implement complex features such as real-time updates, interactive forms, and animations.
Key Features of JavaScript
Interactivity: JavaScript adds life to web pages by enabling interactivity, such as buttons, forms, and animations.
Versatility: It works on almost every platform and is compatible with most modern browsers.
Asynchronous Programming: JavaScript handles tasks like fetching data from servers without reloading a web page.
Extensive Libraries and Frameworks: Frameworks like React, Angular, and Vue make it even more powerful.
JavaScript Basics You Should Know
1. Variables
Variables store data that can be used and manipulated later. In JavaScript, there are three ways to declare variables:
var (old way, avoid using in modern JS)
let (block-scoped variable)
const (constant variable that cannot be reassigned)
Example:
javascript
Copy code
let name = "John"; // can be reassigned const age = 25; // cannot be reassigned
2. Data Types
JavaScript supports several data types:
String: Text data (e.g., "Hello, World!")
Number: Numeric values (e.g., 123, 3.14)
Boolean: True or false values (true, false)
Object: Complex data (e.g., { key: "value" })
Array: List of items (e.g., [1, 2, 3])
Undefined: A variable declared but not assigned a value
Null: Intentional absence of value
Example:
javascript
Copy code
let isLoggedIn = true; // Boolean let items = ["Apple", "Banana", "Cherry"]; // Array
3. Functions
Functions are reusable blocks of code that perform a task.
Example:
javascript
Copy code
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Alice")); // Output: Hello, Alice!
4. Control Structures
JavaScript supports conditions and loops to control program flow:
If-Else Statements:
javascript
Copy code
if (age > 18) { console.log("You are an adult."); } else { console.log("You are a minor."); }
Loops:
javascript
Copy code
for (let i = 0; i < 5; i++) { console.log(i); }
5. DOM Manipulation
JavaScript can interact with and modify the Document Object Model (DOM), which represents the structure of a web page.
Example:
javascript
Copy code
document.getElementById("btn").addEventListener("click", () => { alert("Button clicked!"); });
Visit 1
mysite
Conclusion
JavaScript is an essential skill for web developers. By mastering its basics, you can create dynamic and interactive websites that provide an excellent user experience. As you progress, you can explore advanced concepts like asynchronous programming, object-oriented design, and popular JavaScript frameworks. Keep practicing, and you'll unlock the true power of JavaScript!
2 notes · View notes
yeet-mc-yeeterson · 9 months ago
Text
Me in code HS (JS)
for(var ilovemen = 1; ilovemen <= 100; ilovemen++) {
println("I love men " + ilovemen)
}
6 notes · View notes
frontproofmedia · 11 months ago
Text
JAKE PAUL VS. MIKE PERRY AND AMANDA SERRANO VS. KATIE MORGAN PRESS CONFERENCE QUOTES AND PHOTOS
(adsbygoogle = window.adsbygoogle || []).push({});
Follow @Frontproofmedia!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d. getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
Published: July 18, 2024
TAMPA, FL – July 18, 2024 – MVP’s Jake “El Gallo de Dorado” Paul (9-1, 6 KOs) and the King of Violence, “Platinum” Mike Perry, came face to face for the first time at a press conference held at the Amalie Arena ahead of their bout this Saturday, July 20. Paul vs. Perry, presented by CELSIUS Live Fit Essential Energy, is set for an eight-round cruiserweight bout and will be shown live globally on DAZN pay-per-view from the Amalie Arena in Tampa, FL. Tickets are on sale now at Ticketmaster.com.
 In the highly anticipated co-main event, boxing trailblazer and unified featherweight world champion Amanda “The Real Deal” Serrano (46-2-1, 30 KOs) will face top-10 ranked IBF, WBO, and WBA talent and KO artist Stevie “Sledgehammer” Morgan (14-1, 13 KOs) in a 10x2 super lightweight fight. Amanda will test her power and endurance at super lightweight ahead of her clash with Katie Taylor later this year.
 MVP’s undefeated phenom and top lightweight prospect H2O Sylve (11-0, 9 KOs) will put his undefeated record on the line yet again against top IBF, and WBA ranked prospect Lucas “Prince” Bahdi (16-0, 14 KOs) in a 10 round lightweight bout. Also on the card, Mexican cruiserweight and former WBC world champion Julio Cesar Chavez Jr.  (53-6-1, 34 KOs) returns against Uriah Hall (1-0 Boxing, 18-11, 14 KOs UFC) at cruiserweight and Crescent City, Florida’s Tony Aguilar (12-0-1, 4 KOs) vs. Orlando, Florida’s Corey “2Smoove" Marksman (9-0-1, 7 KOs) in an 8-round lightweight bout, a rematch of their split draw in February 2024 on Most Valuable Prospects 5.
 In today’s press conference hosted by renowned combat sports journalist Ariel Helwani, Paul, Perry, Serrano, Morgan, Sylve, Bahdi, Chavez Jr., Hall, Aguilar, and Marksmen had plenty to say about the upcoming event:
 JAKE PAUL QUOTES:
On whether he watched any footage of Perry: He had a boxing match in a triangle that I gained a lot of knowledge from. Lot of openings. It's gonna be a short night, Ariel.
On what he has to look out for in Perry’s skillset: The skills is what pay the bills. And he has no footwork, no head movement, no defense. He's a great offensive fighter and bare knuckle, but in terms of boxing, he's going to get picked apart very quickly, and it's going to be a short night. Like I said, my predictions are never wrong, so I stand on business every single time I manifested into reality. I Jake Joseph Paul will knock out Mike Perry in less than two rounds. It's going to happen, put money on it.
 On what the rationale was to take the fight and the difference between Tyson and Perry: To stay getting experience under the bright lights on my world, on my path to World Championship. And that's what matters, is getting the experience under the bright lights. And this is a Mike appetizer. Mike warm up, but they're both killers at the end of the day, and I do have to be sharp. He does have one punch knockout power that I do have to respect. But other than that, it's going to be easy.
 On Conor McGregor telling press that Perry was fighting a ‘dweeb’ in Jake Paul: Well, first of all, he's big up in BKFC, but you're going to see what I'm going to do to their best fighter on Saturday night. I'm going to embarrass their entire league. This guy has no skill; those are just brawler idiot street fighter dudes who have no idea what the sweet science is. Conor McGregor can say what he wants, but he won't fight me either. Once I knock out Mike Perry, Conor McGregor, let's run it. But you won't do it because you know what's going to happen. You saw what I did to Nate Diaz, who you went toe-to-toe with. Conor McGregor, lay off the cocaine, get in the gym, and start winning fights. Then maybe we could have a conversation.
On why he chose to take a dangerous fight despite Mike Tyson’s concerns: This is what I do. I'm here to fight. I love to take risks and do big events. Mike Tyson called and was concerned about this fight jeopardizing the biggest fight of my career. That's what puts the pressure on me, and I love that. I'm not slowing down for anybody. Mike Perry is not going to be the one to stop me. I'm on a path to World Championship. I'm not slowing down for anybody.
On what his biggest concern with the fight is: He's unorthodox. That's about it. So the first 30 seconds to a minute, just find my timing in range. That's then the fight's over. That's really about it.
On whether he’ll fight Perry in MMA: Yes, let's go after this. After I knock him out on Saturday, let's sign the contract for some MMA. I'll choke you out too.
On the decision to choose Perry as the opponent: This came about because he has a crazy fan base. And anytime I would post an Instagram picture over the last like 18 months, one of the top comments would always be fight Mike Perry. Fight. Mike Perry, you're scared of Mike Perry, and so I love to prove people wrong and take the fights that no one thinks I'm going to take.
On how his skill has improved: This past year has been a different Jake Paul showing up into the gym, learning in the gym, and I really haven't been able to display my skills because of the first round knockouts, and likely that'll happen again on Saturday, but I really have so many tools in the shed that I'm ready to pull out and get warmed up as the rounds go on, and just display all the new things we've Been working on.
On coming back to Tampa:  There's magic in this place. I love fighting in Florida and Tampa. The energy when I knocked out Woodley was amazing, one of the best moments of my life. I wanted to come back for another highlight reel KO.
Mike Perry Quotes:
On whether he has to get the win for not only himself but for the MMA community: I’m doing it for everybody, for me, for the fans, for BKFC, for MMA, you know, just mainly for me, because I believe in myself and my boxing ability. I'm a brawling boxing mug, so I'm ready to get in the ring with Jake and have some fun.
On how he has evolved since his last professional fight: I've been winning since then. There's all I know. I've been victorious. I've been succeeding consistently, and I've been getting better every single day. Put this little twerp in his place. He's new to this game. Welcome. Welcome. You just got here.
In response to Paul saying Perry has no boxing experience: Don't worry, you're going to get what you've been asking for, the fight to go longer than one round. Imma give you hell in the first round, and you'll get tired. You're going to be grasping for air. I made a new word, grasping.
On what makes him different from Diaz and other MMA fighters who Paul has fought: This is my chance to show the world what a real fighter can do in boxing. Those other guys were long past their prime.
Amanda Serrano Quotes:
On the trash talk from Stevie Morgan: Listen, I don't pay attention to that. That doesn't win fights, that doesn't pay my bills. I go out, I train hard, I fight hard, and you'll see Saturday night.
On if she is looking past Morgan with the Katie Taylor fight coming up: This is my 50th fight and I’ve never overlooked an opponent.
Stevie Morgan Quotes:
On her previous comment that Serrano is the weakest of the fighters at the top: I’m not being disrespectful at all, I’m just stating facts. If I had to fight any of the fighters at the top, Amanda is the one I’d choose mainly because she’ll make me look good… she’s on her way out, she could have retired two years ago.
On if Amanda is overlooking her for Katie Taylor: I don't think she looks past any opponent, but she shouldn't be for sure. One thing for sure, I am a professional, been in this game for 15 years, this is my 50th fight, and I never overlooked any opponent.
Lucas Bahdi Quotes:
On what it was like to get the call asking to be on the card: I've been waiting for an opportunity like this, a big opportunity, a big stage. This is obviously my toughest fight, his toughest fight by two undefeated fighters. It's gonna be a great fight.
H2O Sylve Quotes:
On what his assessment of Bahdi is: From what I saw in very fundamentally sound, he has a real right hand. I think that's the best attribute on this side.
Tony Aguilar Quotes:
On the previous split decision ruling in his first match with Marksman and if it would have been different were he in better shape: It wouldn't have been even close enough, and then even tried to call it a draw, you know, I mean, but Saturday, we will right that wrong, like they said, you know, because it was the wrong decision. But we will make sure they know on Saturday.
Corey Marksman Quotes:
On what he learned from the split decision between him and Aguilar: I'd say, don't take anything for granted. You know, you might think that you're in the lead, you might think that you're winning the fight, but at the end of the day, the judges are the ones that decide that. So you gotta really go out there and take what’s yours.
Julio Cesar Chavez Jr. Quotes:
On his motivation to come back after a three-year break: To be back in boxing is great for me. I'm ready to put on a performance on Saturday.
On whether this is a one-off or a comeback: This is definitely a comeback.
Uriah Hall Quotes:
On his decision to come back after a two-year hiatus As an athlete, as a warrior, you still have those tendencies. And time to time, I get a little bored… so when this came up, I got excited.
(Featured Photo: Esther Lin/Most Valuable Promotions)
2 notes · View notes
robindavis · 1 year ago
Link
Check out this listing I just found on Poshmark: ROMANO PALAI Made in Italy Women’s Black Leather Cork Wedge Sandals Sz 10.
0 notes
trademark-blue · 2 years ago
Text
BORN IN THE U.S.A!
Born in the U.S.A & Made in Downtown LA.
Father’s Daughter brand was derived from a real father & daughter team who started their denim life in LA’s premium denim scene. Father, Jim Man Kim moved to LA from Korea in 1991 and became lead patternmaker for the likes of Calvin Klein, Tommy Hilfiger, J Brand, and other iconic denim brands. His daughter Su Kim followed this creative journey and studied Nouvelle Couture in Paris before moving back to the City of Angels to pursue dreams of creating her own brand. Fast forward to today and Father’s Daughter brand designs small batches of expertly crafted denim in their workshop in Downtown LA. This is a true denim success story and an American dream for the Kim family, from humble beginnings to a little label with a big impact.
LOCATION / KINGS CROSS LONDON
PHOTOGRAPHY / MIRI SAITO @MILLIMETER_MM__
SHOP THE LOOK
SHOP here / FATHER’S DAUGHER LA SUSIE WIDE LEG JEANS and here / FATHER’S DAUGHTER LA KATHLEEN BOX CROP JACKET and here / FATHERS DAUGHTER JETT MID RISE ANKLE BOOT JEAN and here/ CHRISTOPHER RAEBURN X DISNEY BAG
#WISH LIST
!function(d,s,id){var e, p = /^http:/.test(d.location) ? 'http' : 'https';if(!d.getElementById(id)) {e = d.createElement(s);e.id = id;e.src = p + '://' + 'widgets.rewardstyle.com' + '/js/lookbook.js';d.body.appendChild(e);}if(typeof(window.__lookbook) === 'object') if(d.readyState === 'complete') (document, 'script', 'lookbook-script');
JavaScript is currently disabled in this browser. Reactivate it to view this content.
#TRENDING
2 notes · View notes
danielwege-blog · 5 hours ago
Text
Mãe e filha estão entre as vítimas de acidente de balão em SC
News https://portal.esgagenda.com/mae-e-filha-estao-entre-as-vitimas-de-acidente-de-balao-em-sc/
Mãe e filha estão entre as vítimas de acidente de balão em SC
Tumblr media
Enquanto a catarina Leane Elizabeth Herrmann e Sua Filha Leíse Herrmann Parizotto Morreram na Queda do Balão em Praia Grande, Em Santa Catarina, Neste Sábado, 21. Leciane Herrmann Parizotto, Tambe Filha de Lean, Sobrevivou.
Natural de Ipira, Leane Tinh 70 ANOS. ERA FORMADA EM Administração e Em Pedagogia e Morava em Joaçaba. Era de Leíse Médica E Servidora púbblica na prefeitura de Blumenau. Uma prefeitura da Cidade Publicou uma nota lamentando um morte de leíse.
Tamboma Morreu No Acidenthe O Diretor Técnico da Federaça Catarinense de Patinação Artística, Leandro Luzzi. ‘Leandro Foi UM Profissional Dedicado, APAIXONADO PELA QUE FAZIA E UM Verdadeiro Exemplo Para Atletas, Colegas e Toda Uma Comunidade da Patinação. Sua ausênia deixará uma lacuna irreparável em nossos Coraza e em nossa modalidade ‘, diz nota divulgada pela federação.
Ainda Está Entre como Vítimas o Casal Everaldo da Rocha e Janaina Moreira Soares, Moradorores de Joinville. Uma paróquia São João Batista Tambema Publicou Uma Nota de Pesar em Que Afirma Que Eleles Eram Membros da Comunidade.
Ó Médico oftalmologa Andre Gabriel de Melo, que Vivia em Fraibugo (SC) Tamboma Morreu na Queda do Balão.
!function(f,b,e,v,n,t,s) if(f.fbq)return;n=f.fbq=function()n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments); if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '204496277643064'); fbq('track', 'PageView'); window.fbAsyncInit = function() FB.init( appId : '898700906848364', xfbml : true, cookie : true, status : true, version : 'v2.1' );
$(document).trigger('atexFbInit'); // trigger event ;
(function(d, s, id) var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "https://connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); (document, 'script', 'facebook-jssdk'));
0 notes
10bmnews · 14 days ago
Text
Casas holds off Foster in men's 200m IM
June 8, 2025 01:23 AM With a tight finish, Shaine Casas won the men’s 200m individual medley with a time of 1:55.73, just three hundredths of a second ahead of Carson Foster. window.fbAsyncInit = function() { FB.init({ appId : ‘206053216266379’, xfbml : true, version : ‘v2.9’ }); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js =…
0 notes
necromancercoding · 17 days ago
Note
¡Holi, Necro! Seguí tu tutorial de hacer pestañas con labels en las tablillas (¡muchas gracias por enseñar!), pero la tablilla es para que varios usuarios puedan usar en sus posts dentro de un mismo tema, por lo que me gustaría saber si existe una forma de asignar un id único al label de cada post sin cambiarlo manualmente cada vez. Según vi, una vez respondiste a una duda similar aplicando {postrow.displayed.U_POST_ID} pero eso no funciona dentro de los posts (creo), ¿hay algo similar?
¡Holi! La mejor opción para tablillas con pestañas si es algo a compartir siempre será el JS. Aquí tienes un codepen con un código básico de pestañas. Por el momento, si quieres usar CSS, se tienen que cambiar manualmente por el usuario en cada post.
Pero si tienes acceso al PA, se puede hacer una variable similar a las de FA (las que tienen {ESTAPINTA}) y reemplazarla a posteriori.
$(function() { $('.postbody > .content > div:has([id*="{POSTID}"], [for*="{POSTID}"], [name*="{POSTID}"], [class*="{POSTID}"])').each(function() { if ($(this).parents('.post').attr('id')){ var postID = $(this).parents('.post').attr('id').split('p')[1]; } else { var postID = $(this).parents('.post').find('.postbody .h3 > a').attr('href').split('#')[1]; } $(this).find('[id*="{POSTID}"], [for*="{POSTID}"], [name*="{POSTID}"], [class*="{POSTID}"]').each(function() { $.each(this.attributes, function() { this.value = this.value.replace(/{POSTID}/g, postID); }); }); }); });
Esto te permitirá poner {POSTID} y se verá reemplazado por el id del post (importante que tengas la variable que mencionas en tu ask como valor del id del .post, como viene por defecto en el template de viewtopic_body). Esto haría que un sistema de tabs como este:
<input id="tab1-{POSTID}" type="radio" name="tabs-{POSTID}"/> <input id="tab2-{POSTID}" type="radio" name="tabs-{POSTID}"/> <input id="tab3-{POSTID}" type="radio" name="tabs-{POSTID}"/> <label for="tab1-{POSTID}">label 1</label> <label for="tab2-{POSTID}">label 2</label> <label for="tab3-{POSTID}">label 3</label>
Tenga un valor diferente en cada una de las instancias y funcionen individualmente.
Eso sí, algo importante: En el caso del search_results_posts, tienes que editarlo teniendo en cuenta dos cosas:
El valor de ".postbody .h3 > a" en el JS corresponde al link directo al post, ya que en este template, no se le pone id al post directamente. Si lo tienes en otro lado, tendrás que modificar ese valor por el nuevo (personalmente, recomiendo ponerle una clase al link que es lo más sencillo).
La variable de {searchresults.MESSAGE} en este template tiene que estar exactamente igual que su equivalente en viewtopic_body. Por defecto, siendo hija de .post, .postbody, .content, div (sin clase), en orden descendente. Si tienes otro esqueleto, tendrás que modificarlo en el JS (de nuevo, siendo igual en ambos templates).
PD: Está diseñado para ir directamente a por los atributos de id, for, name y class, no funcionará si se pone como texto sin más en el post, como dato.
PD2: El JS debe ir en Todas las páginas.
¡Saludos!
3 notes · View notes
ahmednabelprog · 26 days ago
Text
الجزء الثالث - المتغيرات (Variables) - سلسلة FSWD - JS
✅ المتغيرات (Variables) 🟢 أولًا: يعني إيه “متغير” في البرمجة؟ المتغير (Variable) هو مكان في الذاكرة بنخزن فيه بيانات علشان نقدر نستخدمها أو نغيّرها لاحقًا. زي لما تحط رقم أو كلمة في “علبة” وتسمي العلبة دي باسم معين، وبعدين تستخدم الاسم ده علشان توصل للمحتوى. ✅ أنواع المتغيرات في JavaScript: في JavaScript عندنا 3 طرق لتعريف المتغير: الكلمة الوصف var الطريقة القديمة، وليها مشاكل مع الـ…
0 notes