{"id":10535,"date":"2013-06-18T08:52:39","date_gmt":"2013-06-17T23:52:39","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=10535"},"modified":"2013-06-18T08:53:38","modified_gmt":"2013-06-17T23:53:38","slug":"flippant-js","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/flippant-js\/","title":{"rendered":"\u30d5\u30ea\u30c3\u30d7\u30a8\u30d5\u30a7\u30af\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u300cFlippant.js\u300d"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/06\/blogflippant.js.png\" alt=\"Flippant js\" title=\"flippant.js.png\" border=\"0\" width=\"560\" height=\"336\" \/><\/p>\n<p><a href=\"http:\/\/mintchaos.github.io\/flippant.js\/\">Flippant.js<\/a>\u306f\u3001\u304b\u3063\u3053\u3044\u3044\u30d5\u30ea\u30c3\u30d7\u30a8\u30d5\u30a7\u30af\u30c8(\u6307\u3067\u306f\u3058\u304f\u3088\u3046\u306a\u30a8\u30d5\u30a7\u30af\u30c8)\u3092\u304b\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308bJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306fMIT\u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059(<a href=\"https:\/\/github.com\/mintchaos\/flippant.js\">GithHub<\/a>)\u3002<\/p>\n<p>\u8efd\u91cf\u3067\u3001\u4f9d\u5b58\u6027\u304c\u306a\u304f\u3001\u7c21\u5358\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3044\u3046\u3053\u3068\u3067\u4f7f\u3044\u52dd\u624b\u304c\u826f\u3055\u305d\u3046\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3054\u7d39\u4ecb\u3002<br \/>\n<!--more--><\/p>\n<h3>\u30b5\u30f3\u30d7\u30eb<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/06\/blogsample.png\" alt=\"Sample\" title=\"sample.png\" border=\"0\" width=\"560\" height=\"337\" \/><\/p>\n<p>\u30c7\u30e2\u30b5\u30a4\u30c8\u306e\u30c8\u30c3\u30d7\u306b\u3042\u308b\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/06\/blogmodal.png\" alt=\"Modal\" title=\"modal.png\" border=\"0\" width=\"560\" height=\"346\" \/><\/p>\n<p>\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u30d5\u30ea\u30c3\u30d7\u8868\u793a\u3055\u308c\u307e\u3059\u3002[Update]\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u6d88\u3048\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/06\/blogcard.png\" alt=\"Card\" title=\"card.png\" border=\"0\" width=\"560\" height=\"346\" \/><\/p>\n<p>\u3053\u308c\u306f\u30ab\u30fc\u30c9\u30bf\u30a4\u30d7\u3002<\/p>\n<pre><code class=\"javascript\">var front = document.getElementByID('flipthis')\n  , back_content = \"<h1>I'm the back!<\/h1>\" \/\/ Generate or pull any HTML you want for the back.\n  , back\n\n\/\/ when the correct action happens, call flip!\nback = flippant.flip(front, back_content)\n\/\/ this creates the back element, sizes it and flips it around.\n\n\/\/ invoke the close event on the back element when it's time to close.\n\n\/\/ call the close method on the back element when it's time to close.\nback.close()\n\/\/ alternatively you can trigger a close event on the back element if you fancy.\n\/\/ var close_event = new CustomEvent('close')\n\/\/ back.dispatchEvent(close_event)\n<\/code><\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre><code class=\"javascript\">back = flippant.flip(front, back_content, 'modal')\n<\/code><\/pre>\n<p>flippant.flip\u306e\u7b2c3\u5f15\u6570\u3067\u3001modal or card\u5f15\u6570\u3092\u4e0e\u3048\u3066\u52b9\u679c\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u899a\u3048\u3066\u3044\u308b\u3068\u826f\u3055\u3052\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flippant.js\u306f\u3001\u304b\u3063\u3053\u3044\u3044\u30d5\u30ea\u30c3\u30d7\u30a8\u30d5\u30a7\u30af\u30c8(\u6307\u3067\u306f\u3058\u304f\u3088\u3046\u306a\u30a8\u30d5\u30a7\u30af\u30c8)\u3092\u304b\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308bJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306fMIT\u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059(GithHub)\u3002 \u8efd\u91cf\u3067\u3001\u4f9d [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":10531,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[1114,655],"class_list":["post-10535","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-flippant-js","tag-javascript"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/10535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=10535"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/10535\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/10531"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=10535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=10535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=10535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}