Skip to content

Commit

Permalink
Fixes to example files
Browse files Browse the repository at this point in the history
  • Loading branch information
andjc committed Feb 4, 2016
1 parent 9dbd42c commit f0afed4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/orderlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Ordered List</title>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../js/jquery.mymr.extend.js"></script>
<script type="text/javascript" src="../js/jquery.mymr.js"></script>
<style type="text/css">
body {
padding: 50px;
Expand Down
2 changes: 1 addition & 1 deletion examples/syallbreak.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset='utf-8'>
<title>jQuery syllable break</title>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../js/jquery.mymr.extend.js"></script>
<script type="text/javascript" src="../js/jquery.mymr.js"></script>
<style type="text/css">
body {
padding: 50px;
Expand Down
25 changes: 22 additions & 3 deletions examples/ksw-test.html → examples/wrapper.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
@counter-style dash
{
system: cyclic;
symbols: \2013;
/* – */
symbols: '\2013';
suffix: " ";
}

@counter-style hyphen
{
system: cyclic;
symbols: '-';
suffix: " ";
}

Expand Down Expand Up @@ -61,6 +67,12 @@
list-style: myanmar-parens;
}

.first-letter {
float: left; color: #903; font-size: 75px; line-height: 60px; padding-top: 4px; padding-right: 8px; padding-left: 3px;
}



</style>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="/js/jquery.mymr.js"></script>
Expand Down Expand Up @@ -89,6 +101,7 @@ <h2>ဒီ&#8203;န်&#8203;လိး&#8203;လီၤ&#8203;လၢ&#8203;န&#

<script>
jQuery.fn.extend({
// from jquery.mlwt.js
isSupportedCssRule: function(property,value) {
var test = false;
if (jQuery(this).css(property) === value) {
Expand All @@ -103,9 +116,15 @@ <h2>ဒီ&#8203;န်&#8203;လိး&#8203;လီၤ&#8203;လၢ&#8203;န&#
jQuery(document).ready(function() {
jQuery("#mgioTransContent[lang='ksw']").mymrSyllBreak("sgawKaren");

jQuery("p").first().mymrFirstLetter('ksw');

if(!jQuery("ol:lang(ksw)").isSupportedCssRule("list-style-type","myanmar-parens")) {
console.log("myanmar-parens is NOT supported");
jQuery("ol[lang='ksw']").mymrOrderlist("dig-myanmar", {affix: "parens"});
jQuery("ol:lang(ksw)").attr("data-mymrol","dig-myanmar");
$.mymr();
$.mymrSetting({
affix: 'parens',
});
}
});

Expand Down

0 comments on commit f0afed4

Please sign in to comment.