Search

Nalezeno "mock": 9

CSS ::file-selector-button


We all love beautifully styled form controls but, due to the differences between operating system displays, styling them can be painful. Due to that pain, we’ve created scores of libraries to mock these controls. Unfortunately that sometimes comes at the cost of accessibility, performance...

Body Toggle


I appreciate the clarity of this trick that Mikael Ainalem posted over on Reddit: It’s a one-liner that toggles the class on the <body> so you can mock up different states and toggle between them on click. <body onclick="this.classList.toggle("active");" Could … The post...

Don’t Wait! Mock the API


Today we have a loose coupling between the front end and the back end of web applications. They are usually developed by separate teams, and keeping those teams and the technology in sync is not easy. To solve part of this problem, we can “fake” the API server that the back end tech...

Turning a Fixed-Size Object into a Responsive Element


I was in a situation recently where I wanted to show an iPhone on a website. I wanted users to be able to interact with an application demo on this “mock” phone, so it had to be rendered in CSS, not an image. I found a great library called marvelapp/devices.css. The library implemented the device...

Observers Mock Fork Called Bitcoin2 That Pumps and Dumps on Two Exchanges


Over the last 48 hours, cryptocurrency enthusiasts have been discussing a Bitcoin snapshot fork called Bitcoin2. The little known coin gained over 5,200% since May 28 on only two exchanges and managed to get listed on Coinmarketcap.com as well. Bitcoin2 is believed to be merely a pump and dump...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace