William Booth
@skull_is_dull
0
Get repl title JS
Is there a way to get the title of a repl?
The repl shared is the header I use for all of my stuff in HTML. Then, to add the header, I add this to index.HTML:
$(() => {$("#header").load("https://7f2441a6-3922-476e-94ed-cbe339f593ce.id.repl.co")});
Instead of putting the text that I want in the header in data-title="" each time, is it possible to set it to the title of the repl instead?4
1
0
it took i think 1-2 hrs because i recently started learning js/p5
HTML, CSS, JS
skull_is_dull un-comment bot.botMove() and bot.update() (lines 19/21) to play against a bot2 years ago
is it possible to return a mouses x and y position in python?
PYer This using @mat1 xterm module:
clicks.py
import xterm
printing = False
def getclicks():
for char in xterm.readchrs():
if type(char)!=str:
x = char.x
y = char.y
yield (x, y, char)
main.py
import clicks
coords = clicks.getclicks()
There may be a few edits from the original because I have modified it to suit me.
> The module yields only within the terminal and the top left of the terminal is (0, 0)
> Please upvote if this was useful thanks!4 years ago
Scoder12 What do you mean? In the terminal? Where do you want to capture the mouse position from?4 years ago