Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 25 21:50
    jcubic commented #659
  • Jul 21 16:54
    jcubic labeled #677
  • Jul 21 16:54
    jcubic opened #677
  • Jul 11 21:05
  • Jul 09 12:10
    jcubic edited #610
  • Jul 09 12:09
    jcubic edited #611
  • Jul 09 10:09
    jcubic labeled #676
  • Jul 09 10:09
    jcubic opened #676
  • Jul 09 10:07
    jcubic labeled #675
  • Jul 09 10:07
    jcubic opened #675
  • Jul 09 10:04
    jcubic edited #655
  • Jul 09 10:04
    jcubic edited #655
  • Jul 09 10:04
    jcubic edited #655
  • Jul 08 14:50
    jcubic closed #588
  • Jul 08 14:50
    jcubic commented #588
  • Jul 08 14:50
    jcubic edited #588
  • Jul 08 14:49
    jcubic unlabeled #610
jagg3127-alt
@jagg3127-alt
my code is messed up could you check it out im gonna go eat dinner
jagg3127-alt
@jagg3127-alt
its typing ${$log} instead of the beginning thing also when i go into the first log it types it twice
so could you help???
Jakub T. Jankiewicz
@jcubic
Sorry I've made mistake it should be:
<?php
  function logs($token, $choice = 0) {
    $this->valid_token($token);
    global $logs;
    if (isset($logs[$choice])) {
      $log = $logs[$choice];
      if ($choice == 0) {
        return '[[ send "$log::logs" ]]';
      } else {
        return '[[ send "$log::logs::1000" ]]';
      }
    } else {
      throw new Error('Invalid choice');
    }
  }
$logs not ${$logs} it was left over from previous code.
and no It will not echo twice because the function is called once and only one return is called at a time
first return is when you type just logs without the number and the other return when you type a number
jagg3127-alt
@jagg3127-alt
ok
thanks
jagg3127-alt
@jagg3127-alt
ummm there is a bug when i replace my old logs function with this one it breaks the login
Jakub T. Jankiewicz
@jcubic
First question What error you have? Can you share the code, commit to git?
jagg3127-alt
@jagg3127-alt
yeah i will
its on github now
Jakub T. Jankiewicz
@jcubic
please fix the directories it's hard to navigate in terminal jcubic-terminal-escapeco/jcubic-terminal-escapeco-main/escapeco-all
jagg3127-alt
@jagg3127-alt
give me a second
Jakub T. Jankiewicz
@jcubic
remove those directorys in terminal use git mv jcubic-terminal-escapeco/jcubic-terminal-escapeco-main/escapeco-all/* .
and commit
You didn't made any changes. So what is not woking if you didn't added any code that I've posted here?
jagg3127-alt
@jagg3127-alt
goodness me this thing messed me up ill be right back
jagg3127-alt
@jagg3127-alt
fixed github its now on branch master though
im gonna have to go so cya
Jakub T. Jankiewicz
@jcubic
You have logs two times in PHP and you deleted the login function. Just please look what you're doing
That's why login doesn't work, because you've deleted it
Jakub T. Jankiewicz
@jcubic
You also deleted all my changes
Jakub T. Jankiewicz
@jcubic
I've created a PR please don't remove my code jagg3127-alt/jcubic-terminal-escapeco#3
jagg3127-alt
@jagg3127-alt
oops sorry im going to lable these thing next time
Jakob Papirov
@JakobPapirov
Hey Jakub, I have a question about the height of the terminals
if I set the height to a fixed px, then I get a scrollbar on the side. That's what I want. However how should I approach thing from a responsive design point of view?
should I focus on the the parent <div>?
Jakub T. Jankiewicz
@jcubic
If you want responsive terminal best way to rely on vh units or on % but then all parents need to have defined height (this is how CSS works)
Jakob Papirov
@JakobPapirov
also, I haven't been able to find (yet) how I can change the bg color of a terminal, only text color
Jakub T. Jankiewicz
@jcubic
to change the colors use custom properties --color and --background
Jakob Papirov
@JakobPapirov
I tried using vh in terminal settings but it didn't stay in specified with. I hadn't specified the parent div though
gotcha
hmm,
Jakub T. Jankiewicz
@jcubic
try using CSS I think option only works with number
Jakob Papirov
@JakobPapirov
I'll try tomorrow to experiment with different breakpoints on the parent div and using vh
I'm using tailwindcss
I've decided to use it for this project
I'm still learning, but am using it for another project of mine. it has as in bootstrap sm: xl:
Jakub T. Jankiewicz
@jcubic
Here is example of vh and colors https://codepen.io/jcubic/pen/xReWxJ
Jakob Papirov
@JakobPapirov
cool tnx
on my todo list is to figure out how to generate ascii like that. I've seen something about it in the docs.
I see now that you specified the height in the css, not in the js file
Jakub T. Jankiewicz
@jcubic
The ASCII that is showing by default was created by hand. But you can use figlet library generate different text using ASCII fonts
Jakob Papirov
@JakobPapirov
oh
cool
yes read something abt the figlet lib
Jakub T. Jankiewicz
@jcubic
Jakob Papirov
@JakobPapirov
I've been using your example from the docs :
{
                greetings: `Welcome to NetSide! You'll find the repo @ [[!;i;black]https://github.com/JakobPapirov/NetSide]\n
Available commands are:
[[b;green;black]login]
[[b;green;black]login help]
[[b;green;black]login user]
[[b;green;black]credits]\n`,
                name: 'playArea',
                height: 600,
                width: '100%',
                prompt: '>>> '
            }