screen_rotation
Copied to Clipboard
<html> <head> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="app"> <label for="input-field">Enter text:</label> <input type="text" id="input-field" v-model="myText"> <p>Formatted text: {{ formattedText }}</p> </div> <script type="module"> const app = new Vue({ el: "#app", data() { return { myText: "Replace-Dash-with-Space", }; }, computed: { formattedText() { return this.myText.replace(/-/g, " "); }, }, }) </script> <style> #app { display: flex; flex-direction: column; align-items: center; font-family: 'Helvetica Neue', sans-serif; color: #444; padding: 20px; background-color: #f7f7f7; border: 1px solid #ddd; border-radius: 10px; } label { margin-bottom: 5px; font-weight: bold; font-size: 18px; } input[type="text"] { padding: 10px; border: none; border-radius: 5px; background-color: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); width: 100%; font-size: 16px; } p { margin-top: 10px; font-weight: bold; font-size: 18px; color: #666; } </style> </body> </html>