Posts by Richard Santos • 74 points
9 posts
-
-1
votes1
answer18
viewsQ: Why doesn’t my Sass compile this code?
.button { //background-color: $button-blue-bg; color: $button-font-color; font-size: $button-font-size; position: relative; display: block; text-align: center; line-height: 20px; padding: 0 12px;…
sassasked Richard Santos 74 -
1
votes1
answer476
viewsQ: CSS - When to click change another element
I wanted to know how to do so that when I click the H1 button change to the red color, only with css <!DOCTYPE html> <html> <head> <style type="text/css"> button:active + h1…
-
0
votes1
answer24
viewsQ: *public class*, what is your role in the script action?
Good people, I’m trying to learn actionscript 3.0 to understand how the source of a game works, because there is a part of the script that I can’t find a good explanation on the internet that is the…
actionscript-3asked Richard Santos 74 -
0
votes1
answer84
viewsQ: Python - How to make a Packet logger from a server?
Python - How to make a Packet logger from a server? Hi, I was wondering how do I create a python Packet logger that would have the following functionality: Receive information from the game server,…
pythonasked Richard Santos 74 -
1
votes1
answer61
viewsQ: Javascript - drawRect is interfering with the background color
When I put one squared in canvas the bottom turns white. (function(){ var c = document.createElement("canvas"); var ctx = c.getContext('2d'); var fps = 30; var height = 300; var width = 300; var…
-
0
votes0
answers249
viewsQ: Javascript - What is a Function within parentheses for?
One of these days I saw a code on javascript and I wondered why use parentheses to close a Function: (function(){ }); Like this code above. I appreciate any explanation.…
javascriptasked Richard Santos 74 -
0
votes1
answer452
viewsA: I’m creating a quiz and I can’t check with javascript
Well from what I understand, you need to issue an alert and add a hit if the answer is right, I made some changes to your html and re-did the script function verificar(){ var resposta =…
javascriptanswered Richard Santos 74 -
0
votes1
answer48
viewsA: Write excel file within Scrapy project
def save_file(self, response): f = open("teste.xls", "wb") f.write(response.body) f.close() You were wrong in f = write(response.body) you have assigned the variable "f" the write() value, but write…
-
2
votes1
answer362
viewsQ: How do I split items and different sub-crops on the same page?
I wanted to divide some items into different subpages, an image of an example. For example, if I click on button 1 he shows the element 1, if I click on button 2 he shows the element 2, but all this…