File size: 3,598 Bytes
5920e02
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<html><head><base href="https://websim.ai"/><title>Drunk Image Search - Blurry Vision Edition</title><style>
  body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
  }
  .container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  h1 {
    color: #333;
    text-align: center;
    animation: wobble 2s infinite;
  }
  .search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  #search-input {
    width: 70%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px 0 0 5px;
  }
  #search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
  }
  .results {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .image-container {
    width: 200px;
    margin: 10px;
    text-align: center;
  }
  .image-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
  }
  .image-container img:hover {
    transform: scale(1.1);
  }
  @keyframes wobble {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    50% { transform: translateX(5px) rotate(5deg); }
    75% { transform: translateX(-5px) rotate(-5deg); }
    100% { transform: translateX(0); }
  }
  .blurry {
    filter: blur(3px);
  }
</style></head><body>
  <div class="container">
    <h1>Drunk Image Search</h1>
    <div class="search-bar">
      <input type="text" id="search-input" placeholder="What are you looking for?">
      <button id="search-button">Search</button>
    </div>
    <div class="results">
      <div class="image-container">
        <img src="https://source.unsplash.com/random/200x200?beer" alt="Random beer image" class="blurry">
      </div>
      <div class="image-container">
        <img src="https://source.unsplash.com/random/200x200?wine" alt="Random wine image" class="blurry">
      </div>
      <div class="image-container">
        <img src="https://source.unsplash.com/random/200x200?cocktail" alt="Random cocktail image" class="blurry">
      </div>
      <div class="image-container">
        <img src="https://source.unsplash.com/random/200x200?party" alt="Random party image" class="blurry">
      </div>
      <div class="image-container">
        <img src="https://source.unsplash.com/random/200x200?drunk" alt="Random drunk image" class="blurry">
      </div>
      <div class="image-container">
        <img src="https://source.unsplash.com/random/200x200?hangover" alt="Random hangover image" class="blurry">
      </div>
    </div>
  </div>
  <script>
    document.getElementById('search-button').addEventListener('click', function() {
      alert("Whoa there! You're too drunk to search right now. Try again when the room stops spinning!");
    });

    document.querySelectorAll('.image-container img').forEach(img => {
      img.addEventListener('mouseover', function() {
        this.style.transform = `rotate(${Math.random() * 20 - 10}deg) scale(1.1)`;
      });
      img.addEventListener('mouseout', function() {
        this.style.transform = 'rotate(0deg) scale(1)';
      });
    });

    let wobbleAmount = 5;
    setInterval(() => {
      document.body.style.transform = `translateX(${Math.random() * wobbleAmount - wobbleAmount/2}px)`;
    }, 100);
  </script>
</body></html>