[c_selection.js] If safari_mobile, get current selection from a previously created global variable
[c_sync.js] ref where the safari_mobile global is used
[c_text_view_comments.js] if safari_mobile update selection also on selectionChange event
[text_view_comments.html] if safari_mobile store a clone of the current selection on each selectionChange
set layout width to 99% to improve display
factorize safari mobile detection code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Building a UI with AsyncQueue</title>
<style type="text/css">
/*margin and padding on body element
can introduce errors in determining
element position and are not recommended;
we turn them off as a foundation for YUI
CSS treatments. */
body {
margin:0;
padding:0;
}
</style>
<link type="text/css" rel="stylesheet" href="{{ CM_MEDIA_PREFIX }}js/lib/yui/{{ YUI_VERSION }}/build/cssfonts/fonts-min.css" />
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/lib/yui/{{ YUI_VERSION }}/build/yui/yui-min.js"></script>
</head>
<body class=" yui-skin-sam">
qsdfqsdfqsdfqsdf
<script type="text/javascript">
YUI.add('coment', function(Y) {
function Coment() {
this._init();
} ;
Coment.prototype = {
_init : function () {
Y.log('inited');
},
fun : function () {
Y.log('fun') ;
}
};
Y.Coment = Coment;
}, '0.0.1');
YUI({base:"{{ CM_MEDIA_PREFIX }}js/lib/yui/{{ YUI_VERSION }}/build/", timeout: 10000}).use("coment",function (Y) {
Y.log('in here') ;
var coment = new Y.Coment() ;
coment.fun() ;
});
</script>
<!--END SOURCE CODE FOR EXAMPLE =============================== -->
</body>
</html>