Essays


Send to Kindle

OnStyle

OnStyle

A freedom of blog post layout.

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

<DIV ID=”xxx”> Sky is blue…</DIV>
Step 1. Write a post.

Write a blog post like you would usually do in WordPress. Only one more thing you need to do: Sandwitch the entire post with <DIV ID=”osMyContent”> and </DIV>

. Within this sandwitch, make smaller sandwitches with <DIV ID=”xxx”> and </DIV> giving each small sandwitches with unique IDs.

Sky is blue…

O
OnStyle
Step 2. Design the page.

You point each of the DIV regions, they are highlighted with a pink box.

Use mouse to change the position and the size of the region.

I pasted a demonstration page "Moon, Venus, and Jupiter" that you can try now.

Step 3. Enjoy it onStyle!

That's all!

Publish and show off your blog post “onStyle” to the world!

...and yes. This page, including the banner typo-graphics, is created using onStyle for Wordpress plug-in :)

moon, venus, and jupiter A live demonstration page:
"Moon, Venus, and Jupiter"

More examples

Here are some more example blog posts with OnStyle:

Understand HTML?

I’m developing OnStyle in my spare time, and the code has not been released to the public yet. I’m currently focusing on integrating OnStyle as a WordPress plug-in, but OnStyle works on any web page that has DIV tags with unique IDs. If you have some HTML knowledge and want to a sneak peak, simply paste the following code after the content of the page (Just before </body> would be good). It will run the currently stable version. In the future, if OnStyle are proved to be useful not just for me but others, I may release as a free WordPress plug-in.

<script type="text/javascript" src="http://daigotanaka.org/onstyle/onstyle.js">
</script>

Developer?

The source code is distributed under MIT license, and it is available from the Google code page.

// OnStyle
//
// Copyright (c)  2011~ by Daigo Tanaka
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

Like this project?
Support by tipping a dollar, or any amount you desire :)

Original post: Jan. 23, 2011 | Last updated: Jan. 23, 2011

Previous: OnStyle. An online tool to design the blog post layout
Next: OnStyle instructions with a live demonstration
Read more

comments powered by Disqus