Posts by Fábio Miguel • 119 points
6 posts
-
3
votes1
answer101
viewsQ: Execute function if input contains certain text
$(function() { if ($fa.ismod = true) { if (document.getElementById("input#message").value = "/msg") { alert('tudo okay'); } } }); This code should do an Alert if input#message contains the text /msg…
-
2
votes1
answer348
viewsQ: Time zone in JS
$(function() { var d = new Date(); var hora = d.getHours(); if (_userdata["user_level"] > 0) { console.log("Você é da staff e pode acessar o fórum."); } else if (hora >= 22 || hora <= 7) {…
-
1
votes2
answers872
viewsQ: Return only integers
<title>Calculadora de Nível</title> <meta charset="utf-8"> <style type="text/css"> body { font-family: 'Segoe UI', Calibri, Helvetica, Tahoma, Verdana, Sans-Serif; color:…
-
-2
votes1
answer56
viewsQ: Generate code (like option value)
I am developing a "program" in visual basic, but I would like to get some information. You know those HTML options values that we selected and it generates something? I’ll give you the example:…
-
1
votes2
answers82
viewsQ: Add additional column in row
I have a Slider in my project where I have a large image displaying the image of the current slider, and then right side, a column that contains several miniatures in the form of squares with the…
-
4
votes1
answer5374
viewsQ: JS code problem (Uncaught Syntaxerror: Missing ) after argument list)
Well, I have a pop-up chatbox code, but it’s making the following mistake: Uncaught Syntaxerror: Missing ) after argument list Code: //Variáveis a editar var imagen_chatbox_desplegable =…