Jump to content

Funce

Members
  • Content Count

    153
  • Joined

  • Last visited

  • Days Won

    4

Funce last won the day on February 4

Funce had the most liked content!

Community Reputation

13 Good

1 Follower

About Funce

  • Rank
    Member
  • Birthday April 24

Previous Fields

  • Languages
    HTML, CSS, JavaScript, PHP, SQL, BYOND

Profile Information

  • Location
    New Zealand

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. An SQL command given that you already have the unix time stored in another variable would be quite simple. DELETE FROM table WHERE time < ? As long as you've inserted these records with their related timestamp, this should remove everything that has a timestamp less than the value you set. The value can be calculated as <?php $criteria = time() - 3600; //3600 seconds is 1 hour ?>
  2. Its a good point of reference, but most of the time I just answer questions in this forum. With the occasional question of my own.
  3. This one should be pretty simple, this should count up. Its just as simple as making sure that the 'countDownDate' is set to something in the past. All you need to do is replace two bits // Set the date we're counting down to var countDownDate = new Date("Jan 5, 2021 15:37:25").getTime(); With // Set the date we're counting down to var countDownDate = new Date().getTime(); And then this var distance = countDownDate - now; with var distance = now - countDownDate;
  4. Be aware, Our Services doesn't have a <a> inside it, so you'll need to correct that for this to work. Replacing .navbar a:hover, .dropdown:hover .dropbtn { background-color: white; } With .navbar a:hover, .dropdown:hover .dropbtn, .dropdown:hover .dropbtn a { background-color: white; color: black; } Does what you want.
  5. What Browser are you using? Only thing I could think of is caching. Try a hard refresh ([CTRL] + [F5]) to see if you're just using an old stylesheet. Otherwise could clear your browsing data - 'cached images and files'
  6. I just fiddled with a couple of things in your code, it works fine, except for that fact that your search container is inside your blog container. It doesn't look like there's that much formatting in your code (unless your editor and the forum doesn't play nice). Here's a version that may work with some corrected styles too. (I just added display: none to the search container) CSS: #blogcontainer { width: 100%; height: 90%; float: left; overflow-y: hidden; padding: 0; position: static; float: left; margin-left: 0; margin-right: 0; margin-bottom: 0; } #searchcontainer { width: 100%; height: 90%; float: left; overflow-y: hidden; padding: 0; position: static; display: none; float: left; margin-left: 0; margin-right: 0; margin-bottom: 0; } #rightcontainer { height: 100vh; width: calc(100% - 20vh - (0.678 * (100%-20vh))); position: fixed; overflow: hidden; background-color: gray; margin-left: calc((0.678 * (100%-20vh)) + 20vh); float: left; margin-right: 0; } HTML: <div id="rightcontainer"> <div id="searchbox"> <form> <input type="text" placeholder="Search..." required /> <input id="cardib" type="button" value="Search" onclick="getSearch()" /> </form> </div> <button id="down" onclick="scrollDown()" onmouseenter="Highlight1()"> &#9660; </button> <button id="up" onclick="scrollUp()" onmouseenter="Highlight2()"> &#9650; </button> <div id="blogcontainer" onmouseover="RollOff1()" onmouseout="RollOff2()"> <div class="postcontainer"> <div class="thumb"></div> <div class="topblock"> <div class="titleblock">Valentines and Rats</div> <div class="moreblock">MORE ></div> </div> <div class="block"> <div class="date"><p>February 14, 2016</p></div> We celebrate Valentine's Day while I battle rats in the coop. </div> </div> <div class="postcontainer"> <div class="thumb"></div> <div class="topblock"> <div class="titleblock">Valentines and Rats</div> <div class="moreblock">MORE ></div> </div> <div class="block"> <div class="date"><p>February 14, 2016</p></div> We celebrate Valentine's Day while I battle rats in the coop. </div> </div> <div class="postcontainer"> <div class="thumb"></div> <div class="topblock"> <div class="titleblock">Valentines and Rats</div> <div class="moreblock">MORE ></div> </div> <div class="block"> <div class="date"><p>February 14, 2016</p></div> We celebrate Valentine's Day while I battle rats in the coop. </div> </div> <div class="postcontainer"> <div class="thumb"></div> <div class="topblock"> <div class="titleblock">Valentines and Rats</div> <div class="moreblock">MORE ></div> </div> <div class="block"> <div class="date"><p>February 14, 2016</p></div> We celebrate Valentine's Day while I battle rats in the coop. </div> </div> </div> <div id="searchcontainer" onmouseover="RollOff1()" onmouseout="RollOff2()"> <div class="postcontainer"> <div class="thumb"></div> <div class="topblock"> <div class="titleblock">OMG</div> <div class="moreblock">MORE ></div> </div> <div class="block"> <div class="date"><p>February 14, 2016</p></div> We celebrate Valentine's Day while I battle rats in the coop. </div> </div> <div class="postcontainer"> <div class="thumb"></div> <div class="topblock"> <div class="titleblock">OMG</div> <div class="moreblock">MORE ></div> </div> <div class="block"> <div class="date"><p>February 14, 2016</p></div> We celebrate Valentine's Day while I battle rats in the coop. </div> </div> <div class="postcontainer"> <div class="thumb"></div> <div class="topblock"> <div class="titleblock">OMG</div> <div class="moreblock">MORE ></div> </div> <div class="block"> <div class="date"><p>February 14, 2016</p></div> We celebrate Valentine's Day while I battle rats in the coop. </div> </div> <div class="postcontainer"> <div class="thumb"></div> <div class="topblock"> <div class="titleblock">OMG</div> <div class="moreblock">MORE ></div> </div> <div class="block"> <div class="date"><p>February 14, 2016</p></div> We celebrate Valentine's Day while I battle rats in the coop. </div> </div> </div> </div>
  7. You might be able to query from what file the request is running on. You can always use $_SERVER['PHP_SELF'] to find out what file is running. Just go something like this for a quick and dirty solution. <li class="<?php echo ($_SERVER['PHP_SELF'] == "/index.php" ? "active" : "");?>"> <a href="index.php">Start</a> </li> <li class="<?php echo ($_SERVER['PHP_SELF'] == "/about.php" ? "active" : "");?>"> <a href="about.php">About</a> </li> <li class="<?php echo ($_SERVER['PHP_SELF'] == "/practices.php" ? "active" : "");?>"> <a href="practices.php">Practices</a> </li> From what I've seen, it uses a relative-to-root path so if its under any directories you'll need to write it as "/sub-directory/about.php"
  8. Without a binding? You might be able to use a prepared query like this. <?php $stmt = $dbh->prepare("SELECT * FROM REGISTRY WHERE name = ? AND id = ?"); if ($stmt->execute(array($name, $id))) { //Stuff } ?> If you want to see the other ways (mostly binding) you can check it out on the doc page: http://php.net/manual/en/pdo.prepared-statements.php Although I'm perplexed as to why it is imperative to not use a binding.
  9. Which question gives you this error? What was your answer?
  10. From what I've observed, keys insert their characters on `keydown`. Preventing propagation on `keyup` wouldn't do anything as all the events already propagated on a different one.
  11. There's a couple of small pages on React and Vue, probably good enough to get a starting point. They're not full tutorials, but I imagine they're good for those that want to get into it. https://www.w3schools.com/whatis/whatis_react.asp https://www.w3schools.com/whatis/whatis_vue.asp
  12. Are there any specific ones you personally want to see added to the website?
  13. Expanding on what dsonesuk has said, a more fitting representation of this list is [ 0: 'BMW', 1: 'MAHINDRA', 2: 'HERO', 3: 'KTM' ] It is technically ordered, just not by what you think.
  14. Hi Roddy, Here's what I can piece together from the help file. (If I'm not mistaken, it may be the one you are referring to) https://matomo.org/docs/setup-auto-archiving/ `core:archive` is the command being run, much like 'mkdir' or 'cat' in other command lines. I am unsure of whether the command is in two parts and parsed together (archive command of core module) or otherwise. At the bottom of the page, you can see the help output of the command.
×
×
  • Create New...