Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
【WordPress】カスタムフィールド(Advanced Custom Fields)のチェックボックスで、2ページ目以降が表示できない。 |
https://teratail.com/questions/368056?rss=all
|
【WordPress】カスタムフィールドAdvancedCustomFieldsのチェックボックスで、ページ目以降が表示できない。 |
2021-11-06 20:44:57 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Cで周期境界を再現したい |
https://teratail.com/questions/368055?rss=all
|
Cで周期境界を再現したい前提・実現したいこと砂紋のパターン形成のシミュレーションを行いたい。 |
2021-11-06 20:31:19 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Python リストの並び替えについて |
https://teratail.com/questions/368054?rss=all
|
Pythonリストの並び替えについてこんにちは、例えばゲームでインデックス番目、番目、番目の人が勝利した回数をリストにと書くとします。 |
2021-11-06 20:26:39 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
【Rails】Enumを動的に生成する方法 |
https://qiita.com/onoblog/items/8ee01a4df21a814cd209
|
【Rails】Enumを動的に生成する方法はじめにRailsで開発中に、外部からの値を参照して動的にEnumの値keyとvalueを生成したいというニッチな情報の備忘録になります。 |
2021-11-06 20:38:07 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
【Rails】Enumを動的に生成する方法 |
https://qiita.com/onoblog/items/8ee01a4df21a814cd209
|
【Rails】Enumを動的に生成する方法はじめにRailsで開発中に、外部からの値を参照して動的にEnumの値keyとvalueを生成したいというニッチな情報の備忘録になります。 |
2021-11-06 20:38:07 |
海外TECH |
MakeUseOf |
How to Set Separate Scroll Directions for a Mouse and Trackpad on Your Mac |
https://www.makeuseof.com/how-to-set-separate-scroll-directions-mouse-trackpad-mac/
|
How to Set Separate Scroll Directions for a Mouse and Trackpad on Your MacNeed to reverse the scroll direction for your mouse without affecting your Mac trackpad This free third party app can help you |
2021-11-06 11:31:37 |
海外TECH |
DEV Community |
Top 4 Blockchain Projects for African Infrastructure Investors |
https://dev.to/team3air/top-4-blockchain-projects-for-african-infrastructure-investors-1c7a
|
|
2021-11-06 11:38:26 |
海外TECH |
DEV Community |
How to build a product with just HTML and CSS |
https://dev.to/luciantartea/how-to-build-a-product-with-just-html-and-css-101l
|
How to build a product with just HTML and CSSCouple of weeks ago I embarked on a challenge to prove you can build a product with just HTML and CSS that people would love and even pay for I ve set a days deadline and promised to present results transparently ResultsSo days after placing the project online it achieved K visitors sales and as passive income This means the sales were made while I was relaxing and thinking about my next challenges Of course being a product it also means that sales will continue to happen in the future but at a lower rate compared to the days from launch It s up to me to increase the frequency Here are some stats from the th day from placing it online close to visitors sales and ProductThe product itself is a HTML website consisting of pages which present HTML templates for websites and landing pages The templates are the bulk of the product and took the best part of days to create As tech stack I used HTML CSS very little Bootstrap and few JS plugins for advanced features To design the templates I relied on my previous experience with this and used Adobe Photoshop and Illustrator To power up sales and item delivery I ve used Gumroad which probably is the best nocode tool for digital creators For marketing I used mostly Twitter and had good results with Reddit and Product Hunt Spent on this project besides the domain name cost and super basic hosting Didn t buy any adds or other marketing help Not because I didn t want to just because I didn t have the money Making ofI created a tweet journal for the days challenge where I posted all my actions and reasoning behind them It s filled with tips ideas and even an HTML template roadmap for devs Available here launchinhtml carrd coHope this will provide inspiration and motivation for web developers to master HTML and CSS well Would love to have your feedback and answer your questions in the comments section |
2021-11-06 11:35:12 |
海外TECH |
DEV Community |
⚠️ Don't try this at home: CSS-only image detail zoom 🖼️🔍 |
https://dev.to/thormeier/dont-try-this-at-home-css-only-image-detail-zoom-3alg
|
️Don x t try this at home CSS only image detail zoom ️No seriously don t We ll be hacking our way through This will involve a lot of dirty hacks and bad practices that will make most screen readers and older browsers go bonkers and or cry bitter tears of sorrow and despair The thing we re about to create is meant to serve as a bad example on what not to do There You ve been warned I will however include a few boxes where I m hacking my way in and explain why you shouldn t be doing this I want to give a shout out to nuritnt While we were coaching a group of web dev students she originally asked the question Can you do an image detail zoom modal with CSS only You could probably write a post about that so yeah here we are Now let s get our hands dirty shall we The thing we re trying to buildSo on some webshops when clicking on a small product image the image opens up in a zoomed version This is especially useful when the product images are say sets of different parts and you want to have a look at the individual parts Or read a small sentence on the packaging To make things a little more convenient I also want to add the possibility to close the modal with the ESC key Don t worry we ll be able to hack that without JS So click on small image opens large image in modal ESC key and close button close it again Sounds good Step The imageFirst we need an image I m going to use placeholder com for that In case you don t know placeholder com it s an amazing website to create placeholder images with You can determine its size via URL for example and add stuff like text via GET parameters Wait aha you re going to use the trusty ol checkbox trick right Almost Today we re going to get even worse than that For those of you that don t know it the checkbox trick was used back in the days to circumvent using JavaScript for simple style toggles By using the sibling selector a b so any b that is a sibling of a and the checked pseudo class we were able to toggle stuff A really simple example could ve been some toggle checked menu display block I m going to use the good ol lt input type text gt and its focus state for that instead I ll actually go beyond that and will use the text input as the image lt div class imagezoom container style width px height px gt lt input type text class imagezoom style background image url gt lt div gt imagezoom container display inline block margin px imagezoom width inherit height inherit background size cover background position center border none Get rid of any text color rgba Get rid of any text selection imagezoom selection display none Wow Please don t add images to your page like this Screen readers will only see an input without a label there s no possibility to add an alt text and the image might be skewed cropped I m using the input field here to minimize DOM Also since we re using the focus state we can guarantee that any click on the image even when enlarged will trigger a focus on the input and thus keep the modal open Yuck Using the elements focus stateNow we ll style the input field image modal for its zoomed state imagezoom focus Make the image fill the entire screen position fixed top left bottom right width calc vw px important height calc vh px important Style the background image background size contain background repeat no repeat margin px px Remove the background color by making it fully transparent background color rgba Get rid of default focus styling z index border none outline none The dark background imagezoom background display none imagezoom focus imagezoom background display block position fixed top left bottom right width vw height vh z index background color rgba lt div class imagezoom container style width px height px gt lt input type text class imagezoom style background image url gt lt div class imagezoom background gt lt div gt lt div gt Please don t use input fields for this Screen readers will not know that you re trying to build an image zoom They will think they re inside a huge form with dozens of inputs instead of an image gallery They also probably won t know that you re using it as a toggle switch of some sort To round things up we ll add a close button conveniently enough lt button gt takes focus therefore closing the modal The resultThe result is average at best You probably need to open the pen in a separate window especially on a mobile device I also added a min width to the image in order to make it at least show up on mobile While technically functional on mobile devices it opens the keyboard input fields tend to do that A radio or checkbox instead of an input field might fix that though Also the other image jumps around weirdly when one is opened I repeat again please please don t do this in production Use JavaScript instead I need to go wash my hands I hope you enjoyed reading this article as much as I enjoyed writing it If so leave a ️or a I write tech articles in my free time and like to drink coffee every once in a while If you want to support my efforts you can offer me a coffee or follow me on Twitter You can also support me directly via Paypal |
2021-11-06 11:16:01 |
ニュース |
BBC News - Home |
Ex-PM John Major: Government handling of Paterson case shameful |
https://www.bbc.co.uk/news/uk-59188972?at_medium=RSS&at_campaign=KARANGA
|
paterson |
2021-11-06 11:53:37 |
ニュース |
BBC News - Home |
Travis Scott's Astroworld: Eight killed after crowd surge at Texas festival |
https://www.bbc.co.uk/news/world-us-canada-59188960?at_medium=RSS&at_campaign=KARANGA
|
astroworld |
2021-11-06 11:41:08 |
ニュース |
BBC News - Home |
Sierra Leone explosion: Scores dead after Freetown oil tanker collision |
https://www.bbc.co.uk/news/world-africa-59188753?at_medium=RSS&at_campaign=KARANGA
|
capital |
2021-11-06 11:43:07 |
北海道 |
北海道新聞 |
小樽2人感染 新型コロナ |
https://www.hokkaido-np.co.jp/article/608774/
|
新型コロナウイルス |
2021-11-06 20:08:00 |
北海道 |
北海道新聞 |
徒歩で米踏破 軌跡紹介 清田さんの道具、倶知安で写真展示 |
https://www.hokkaido-np.co.jp/article/608773/
|
長距離自然歩道 |
2021-11-06 20:08:00 |
北海道 |
北海道新聞 |
エペで佐藤7度目、加納は初V 全日本フェンシング最終日 |
https://www.hokkaido-np.co.jp/article/608772/
|
全日本選手権 |
2021-11-06 20:08:00 |
コメント
コメントを投稿