crop_rotate
Run
<!DOCTYPE html> <html> <head> <style> .mystyle { width: 300px; height: 50px; background-color: coral; color: white; font-size: 25px; } .newClassName { width: 400px; height: 100px; background-color: lightblue; text-align: center; font-size: 25px; color: navy; margin-bottom: 10px; } </style> </head> <body> <p>Click the button to toggle between two classes.</p> <button onclick="myFunction()">Try it</button> <p><strong>Note:</strong> The classList property is not supported in Internet Explorer 9 and earlier versions.</p> <div id="myDIV" class="mystyle"> I am a DIV element </div> <script> function myFunction() { document.getElementById("myDIV").classList.toggle("newClassName"); } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KLm15c3R5bGUgew0KICB3aWR0aDogMzAwcHg7DQogIGhlaWdodDogNTBweDsNCiAgYmFja2dyb3VuZC1jb2xvcjogY29yYWw7DQogIGNvbG9yOiB3aGl0ZTsNCiAgZm9udC1zaXplOiAyNXB4Ow0KfQ0KDQoubmV3Q2xhc3NOYW1lIHsNCiAgd2lkdGg6IDQwMHB4Ow0KICBoZWlnaHQ6IDEwMHB4Ow0KICBiYWNrZ3JvdW5kLWNvbG9yOiBsaWdodGJsdWU7DQogIHRleHQtYWxpZ246IGNlbnRlcjsNCiAgZm9udC1zaXplOiAyNXB4Ow0KICBjb2xvcjogbmF2eTsNCiAgbWFyZ2luLWJvdHRvbTogMTBweDsNCn0NCjwvc3R5bGU+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPiA6Oi13ZWJraXQtc2Nyb2xsYmFye3dpZHRoOjdweDtoZWlnaHQ6N3B4O306Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNre2JhY2tncm91bmQ6I2ZmZjt9Ojotd2Via2l0LXNjcm9sbGJhci10aHVtYntib3JkZXItcmFkaXVzOjVweDtiYWNrZ3JvdW5kOiMyZjQ1ZmY7fTwvc3R5bGU+PC9oZWFkPg0KPGJvZHk+DQoNCjxwPkNsaWNrIHRoZSBidXR0b24gdG8gdG9nZ2xlIGJldHdlZ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