# Terms and Conditions

> Welcome to LA CTF 2024! All you have to do is accept the terms and conditions and you get a flag!

{% embed url="<https://youtu.be/l2XeNOcEx94>" %}

To press the accept button in step 1, you need to resize the screen so that it will let you open the inspection panel (there is a specific size that will trigger the "NO CONSOLE ALLOWED")\ <br>

<figure><img src="https://174999761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Bl5bdK4McbKkPQuBSdU%2Fuploads%2FcYwNdIIMwqFyKMatJkgH%2Fimage.png?alt=media&#x26;token=6f2b35da-7e59-4da1-a604-35c029027e96" alt=""><figcaption></figcaption></figure>

This code checks if the height of the browser window (`window.innerHeight`) is not equal to the variable `height`, or if the width of the browser window (`window.innerWidth`) is not equal to the variable `width`. If either of these conditions is true, the code inside the curly braces will be executed.

<figure><img src="https://174999761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Bl5bdK4McbKkPQuBSdU%2Fuploads%2FANoXrlPpH4s2W5U1fssF%2Fimage.png?alt=media&#x26;token=84d1b5e6-a112-43ec-a977-d29139a36afb" alt=""><figcaption></figcaption></figure>

Once you manage to do so, grab the button's ID—in this case, it is "accept." Go to the console and click the button with this command. `accept.click()`

<mark style="color:red;">`lactf{that_button_was_definitely_not_one_of_the_terms}`</mark>
