dummy

Dummy - Code snippet

No items found.
<!doctype html><html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=shift_jis"><title>jQuery UI Slider functionality
    </title> 
    <link href="https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet"> 
    <script src="https://code.jquery.com/jquery-1.10.2.js"></script> 
    <script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<body> <h3>Slide Me!!</h3> <div id="slide"></div>  </body> 

</html>

‍

document.addEventListener("DOMContentLoaded", () => {
    let slider_sections = document.querySelectorAll(".section_cards-slider");
    slider_sections.forEach(section => {
        if (section.querySelectorAll(".c-card-item").length < 1) {
            section.classList.add("is-hidden");
            if (section.getAttribute("id") == "Inspiration") {
                document.querySelector("#inspiration-btn").classList.add("is-hidden");
            }
        }
    })
})





let card_item = document.querySelector(".card-item.is-orange")
console.log(card_item)

card_item.addEventListener("click", () => {
    card_item.classList.add("new-class")
})



let card_items = document.querySelectorAll(".section_about-us .images_wrapper");
console.log(card_items)
card_items.forEach(item => {
    let size_attribute = item.getAttribute("data-size");
    if (size_attribute == "Small") {
        item.classList.add("is-small")
    }
    else if (size_attribute == "Medium") {
        item.classList.add("is-medium")
    }
    else if (size_attribute == "Large") {
        item.classList.add("is-large")
    }
})

‍

public function testCheck()
 {
     $d = new dummy();
     $_SERVER["REQUEST_METHOD"] = "POST";
     $res = $d->check(array('101A', 'UTN', 45888, 4, 400, 2.3, 'NO', 'Alen', 4789658963));
     $this->assertEquals(array('101A', 'UTN', 45888, 4, 400, 2.3, 'NO', 'Alen', 4789658963), $res);
     //res:OK
     $res = $d->check(array('101A', 'UTN', 4588998, 4, 400, 2.3, 'NO', 'Alen', 4789658963));
     $this->assertEquals("Please fill out a valid zip code.", $res);
     // res: OK
     $res = $d->check(array('101A', 'UTN', 4588998, 4, 400, 2.3, 'NO', 'Alen', 4789658963));
     $this->assertEquals("Please fill out a valid id.", $res);
     // res: Failure
 }
Other articles from this series
No items found.

Featured roles

Marketing Executive
Berlin
Full-time / Permanent
Marketing Executive
Berlin
Full-time / Permanent
Marketing Executive
Berlin
Full-time / Permanent

Join the journey.

Our 800+ strong team is changing the way millions experience the world, and you can help.

Related blogposts

Sorry, no items found. Check out all blogs.

Sign up to our newsletter

Oops! Something went wrong while submitting the form.