{"id":3488,"date":"2013-10-24T23:47:05","date_gmt":"2013-10-24T23:47:05","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=3488"},"modified":"2017-11-14T10:39:31","modified_gmt":"2017-11-14T18:39:31","slug":"jquery-collapse-o-matic-plugin","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/techs\/jquery-collapse-o-matic-plugin.html","title":{"rendered":"Jquery Collapse-O-Matic Plugin"},"content":{"rendered":"<blockquote>\n<p style=\"text-align: center;\" align=\"center\">01\/25\/2016 I no longer use the plug-in &#8211; I use <a href=\"\/\/www.dognmonkey.com\/techs\/shortcodes-for-boostrap-collapsible.html\">bootstrap collapsible<\/a> now.<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\" align=\"center\"><em>I really like the Jquery Collapse-O-Matic plugin. It does make the long page looks better. Since I used so many Jquery application, I have to make .noconflict for this plugin to work with Fancybox using old jquery 1.25 which doesn&#8217;t work with Collapse-O-Matic using 1.9.1.<\/em><\/p>\n<p style=\"text-align: center;\" align=\"center\"><em>The plugin loads &#8220;js\/collapse.min.js&#8221; and &#8220;dark_style.css&#8221; or &#8220;light_style.css&#8221; automatically to the header. I need to manually create modify &#8220;collapse.min.js&#8221; to &#8216;collapse_fix.js&#8217; for noconflict jquery. Rename the &#8220;js&#8221; folder to &#8216;js1&#8217; so the plugin doesn&#8217;t load the correct &#8216;collapse.min.js&#8217;.<\/em><\/p>\n<p style=\"text-align: center;\" align=\"center\"><em>Modify &#8216;collapse.min.js&#8217; for jquery noconflict.<\/em><\/p>\n<p style=\"text-align: center;\" align=\"center\"><em>Replaced all jQuery in the script to jQuery_omatic then save it to collapse_fix.js, then apply noconflict script above the link of the &#8220;collapse_fix.js&#8221; in the footer like so.<\/em><\/p>\n<div class=\"igallery\">\n<blockquote>\n<p style=\"text-align: left;\" align=\"center\">[expand title=&#8221;jquery noconflict set up in the footer instead of the header for faster loading&#8221;]<br \/>\n&lt;!&#8211;Collapse-O-Matic&#8211;&gt;<br \/>\n&lt;!&#8211; load jQuery 1.9.1 &#8211;&gt;<br \/>\n&lt;script src=&#8221;<a href=\"\/\/code.jquery.com\/jquery-1.9.1.js\" target=\"_blank\" rel=\"noopener\">\/\/code.jquery.com\/jquery-1.9.1.js<\/a>&#8220;&gt;&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221;&gt;<br \/>\nvar jQuery_omatic = $.noConflict(true);<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script src=&#8221;<a href=\"\/\/www.dognmonkey.com\/idogjs\/collapseomatic\/collapse_fix.js\" target=\"_blank\" rel=\"noopener\">\/idogjs\/collapseomatic\/collapse_fix.js<\/a>&#8221; type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;!&#8211;End Collapse-O-Matic&#8211;&gt;<br \/>\n[\/expand]<\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: left;\" align=\"center\">[expand title=&#8221;Setup Codes&#8221;]'[&#8216;expand title=&#8221;Setup Codes&#8221;]content is in here[\/expand&#8217;]&#8217; remove the &#8216;[\/expand]<\/p>\n<p style=\"text-align: left;\" align=\"center\"><em>[expand title=&#8221;customize color&#8221;] <\/em><\/p>\n<p style=\"text-align: center;\" align=\"center\"><a class=\"preview\" href=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/10\/custom_color.jpg\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3882\" src=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/10\/custom_color-300x130.jpg\" alt=\"custom_color\" width=\"300\" height=\"130\" srcset=\"https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/10\/custom_color-300x130.jpg 300w, https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/10\/custom_color.jpg 463w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: left;\" align=\"center\"><em>place these lines in the custom style section<\/em><\/p>\n<p style=\"text-align: left;\" align=\"center\">.collapseomatic {<br \/>\ncolor: #F3A333;<br \/>\n}<br \/>\n.colomat-close {<br \/>\ncolor: #5AF333;<br \/>\n}<br \/>\n.colomat-visited {<br \/>\ncolor: #F33333;<br \/>\n}<\/p>\n<p style=\"text-align: left;\" align=\"center\"><em>[\/expand]<\/em><\/p>\n<\/blockquote>\n<p><em style=\"text-align: center;\">There are many pop-ups (modals) software out there to make the page display pictures and other stuff looks beter. These are some of the ones I like.<\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\" align=\"center\">[expand title=&#8221;ShadowBox&#8221;]<\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"full size click here\" href=\"\/media\/teststuff\/sm_cab04_75.JPG\" rel=\"shadowbox[hs]\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb1\" src=\"\/\/www.dognmonkey.com\/media\/teststuff\/tn_cab04_75.JPG\" alt=\"\" width=\"250\" height=\"141\" \/><\/a> <a class=\"preview\" title=\"full size click here\" href=\"\/media\/teststuff\/sm_cab04_76.JPG\" rel=\"shadowbox[hs]\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb2\" src=\"\/\/www.dognmonkey.com\/media\/teststuff\/tn_cab04_76.JPG\" alt=\"\" width=\"250\" height=\"141\" \/><\/a><\/p>\n<p style=\"text-align: center;\">[\/expand]<\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: left;\" align=\"center\">[expand title=&#8221;PrettyPhoto&#8221;]<\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"full size click here\" href=\"\/media\/teststuff\/sm_cab04_75.JPG\" rel=\"prettyPhoto[hs]\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb1\" src=\"\/\/www.dognmonkey.com\/media\/teststuff\/tn_cab04_75.JPG\" alt=\"\" width=\"250\" height=\"141\" \/><\/a> <a class=\"preview\" title=\"full size click here\" href=\"\/media\/teststuff\/sm_cab04_76.JPG\" rel=\"prettyPhoto[hs]\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb2\" src=\"\/\/www.dognmonkey.com\/media\/teststuff\/tn_cab04_76.JPG\" alt=\"\" width=\"250\" height=\"141\" \/><\/a><\/p>\n<p style=\"text-align: center;\">[\/expand]<\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: left;\" align=\"center\">[expand title=&#8221;FancyBox&#8221;]<\/p>\n<p style=\"text-align: center;\"><a class=\"ltoozb\" title=\"full size click here\" href=\"\/media\/teststuff\/sm_cab04_75.JPG\" rel=\"hs\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb1\" src=\"\/\/www.dognmonkey.com\/media\/teststuff\/tn_cab04_75.JPG\" alt=\"\" width=\"250\" height=\"141\" \/><\/a> <a class=\"ltoozb\" title=\"full size click here\" href=\"\/media\/teststuff\/sm_cab04_76.JPG\" rel=\"hs\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb2\" src=\"\/\/www.dognmonkey.com\/media\/teststuff\/tn_cab04_76.JPG\" alt=\"\" width=\"250\" height=\"141\" \/><\/a><\/p>\n<p style=\"text-align: center;\">[\/expand]<\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: left;\" align=\"center\">[expand title=&#8221;FancyBox 2&#8243;]<\/p>\n<p style=\"text-align: center;\"><a class=\"idogb\" title=\"full size click here\" href=\"\/media\/teststuff\/sm_cab04_75.JPG\" rel=\"hs\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb1\" src=\"\/\/www.dognmonkey.com\/media\/teststuff\/tn_cab04_75.JPG\" alt=\"\" width=\"250\" height=\"141\" \/><\/a> <a class=\"idogb\" title=\"full size click here\" href=\"\/media\/teststuff\/sm_cab04_76.JPG\" rel=\"hs\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb2\" src=\"\/\/www.dognmonkey.com\/media\/teststuff\/tn_cab04_76.JPG\" alt=\"\" width=\"250\" height=\"141\" \/><\/a><\/p>\n<p style=\"text-align: center;\">[\/expand]<\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: left;\" align=\"center\">[expand title=&#8221;Mediabox Advanced&#8221;]<\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"full size click here\" href=\"\/media\/teststuff\/sm_cab04_75.JPG\" rel=\"lightbox[hs]\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb1\" src=\"\/\/www.dognmonkey.com\/media\/teststuff\/tn_cab04_75.JPG\" alt=\"\" width=\"250\" height=\"141\" \/><\/a> <a class=\"preview\" title=\"full size click here\" href=\"\/media\/teststuff\/sm_cab04_76.JPG\" rel=\"lightbox[hs]\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 2px solid black;\" title=\"thumb2\" src=\"\/\/www.dognmonkey.com\/media\/teststuff\/tn_cab04_76.JPG\" alt=\"\" width=\"250\" height=\"141\" \/><\/a><\/p>\n<p style=\"text-align: center;\">[\/expand]<\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: left;\" align=\"center\">[expand title=&#8221;ImagePreview&#8221;] Used together with Mediabox Advanced<\/p>\n<blockquote><p>&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;a title=&#8221;imagepreview&#8221; href=&#8221;\/media\/91alfaspider\/91alfa0.jpg&#8221; rel=&#8221;lightbox&#8221;&gt;&lt;img style=&#8221;vertical-align: baseline; border: 3px solid black;&#8221; title=&#8221;My Alfa&#8221; src=&#8221;\/\/www.dognmonkey.com\/media\/91alfaspider\/91alfa0.jpg&#8221; alt=&#8221;My Alfa&#8221; width=&#8221;250&#8243; \/&gt;&lt;\/a&gt;&lt;\/p&gt;<\/p><\/blockquote>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"imagepreview\" href=\"\/media\/91alfaspider\/91alfa0.jpg\" rel=\"lightbox[ipv]\"><img decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"My Alfa\" src=\"\/\/www.dognmonkey.com\/media\/91alfaspider\/91alfa0.jpg\" alt=\"My Alfa\" width=\"250\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em>Use together with PrettyPhoto<\/em><\/p>\n<blockquote><p>&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;a title=&#8221;imagepreview&#8221; href=&#8221;\/\/dognmonkey.com\/media\/91alfaspider\/91alfa0.jpg&#8221; rel=&#8221;prettyPhoto&#8221;&gt;&lt;img style=&#8221;vertical-align: baseline; border: 3px solid black;&#8221; title=&#8221;My Alfa&#8221; src=&#8221;\/\/www.dognmonkey.com\/media\/91alfaspider\/91alfa0.jpg&#8221; alt=&#8221;My Alfa&#8221; width=&#8221;250&#8243; \/&gt;&lt;\/a&gt;&lt;\/p&gt;<\/p><\/blockquote>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"imagepreview\" href=\"\/media\/91alfaspider\/91alfa0.jpg\" rel=\"prettyPhoto[ipv]\"><img decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"My Alfa\" src=\"\/\/www.dognmonkey.com\/media\/91alfaspider\/91alfa0.jpg\" alt=\"My Alfa\" width=\"250\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em>Use together with Shadowbox<\/em><\/p>\n<blockquote><p>&lt;p style=&#8221;text-align: center;&#8221;&gt;&lt;a title=&#8221;imagepreview&#8221; href=&#8221;\/media\/91alfaspider\/91alfa0.jpg&#8221; rel=&#8221;shadowbox&#8221;&gt;&lt;img style=&#8221;vertical-align: baseline; border: 3px solid black;&#8221; title=&#8221;My Alfa&#8221; src=&#8221;\/\/www.dognmonkey.com\/media\/91alfaspider\/91alfa0.jpg&#8221; alt=&#8221;My Alfa&#8221; width=&#8221;250&#8243; \/&gt;&lt;\/a&gt;&lt;\/p&gt;<\/p><\/blockquote>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"imagepreview\" href=\"\/media\/91alfaspider\/91alfa0.jpg\" rel=\"shadowbox[ipv]\"><img decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"My Alfa\" src=\"\/\/www.dognmonkey.com\/media\/91alfaspider\/91alfa0.jpg\" alt=\"My Alfa\" width=\"250\" \/><\/a><\/p>\n<p style=\"text-align: center;\">[\/expand]<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em>Let&#8217;s see if all these pop ups and mooimagetip will work together in one page.<\/em><\/p>\n<p style=\"text-align: center;\"><a class=\"imagetip\" title=\"mooimagetip\" href=\"\/media\/91alfaspider\/91alfa0.jpg\" rel=\"\/media\/91alfaspider\/91alfa0.jpg\"><em>Mooimagetip<\/em><\/a><\/p>\n<\/div>\n<ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>01\/25\/2016 I no longer use the plug-in &#8211; I use bootstrap collapsible now. I really like the Jquery Collapse-O-Matic plugin. It does make the long page looks better. Since I used so many Jquery application, I have to make .noconflict for this plugin to work with Fancybox using old jquery 1.25 which doesn&#8217;t work with <a href=\"https:\/\/www.dognmonkey.com\/techs\/jquery-collapse-o-matic-plugin.html\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[402],"class_list":["post-3488","post","type-post","status-publish","format-standard","hentry","category-plugins","tag-collapse-o-matic"],"views":813,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/3488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/comments?post=3488"}],"version-history":[{"count":4,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/3488\/revisions"}],"predecessor-version":[{"id":6591,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/3488\/revisions\/6591"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media?parent=3488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/categories?post=3488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/tags?post=3488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}