Changeset 20942
- Timestamp:
- 10/08/08 03:20:36 (3 months ago)
- Location:
- lang/javascript/ratingstars/trunk
- Files:
-
- 12 modified
-
doc/index.html (modified) (1 prop)
-
doc/up.gif (modified) (1 prop) (previous)
-
examples/basic.html (modified) (1 diff, 1 prop)
-
examples/halfrated.html (modified) (1 diff, 1 prop)
-
examples/images/sun1.gif (modified) (1 prop) (previous)
-
examples/images/sun2.gif (modified) (1 prop) (previous)
-
examples/images/sun3.gif (modified) (1 prop) (previous)
-
examples/images/sun9.gif (modified) (1 prop) (previous)
-
examples/messages.html (modified) (1 diff, 1 prop)
-
examples/notfreeze.html (modified) (1 diff, 1 prop)
-
examples/pulsate.html (modified) (1 diff, 1 prop)
-
lib/ratingstars.js (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/ratingstars/trunk/doc/index.html
- Property svn:mime-type set to text/html; charset=UTF-8
-
lang/javascript/ratingstars/trunk/doc/up.gif
- Property svn:mime-type changed from application/octet-stream to image/gif
-
lang/javascript/ratingstars/trunk/examples/basic.html
- Property svn:mime-type set to text/html; charset=UTF-8
r3309 r20942 20 20 <h1>RatingStars Example</h1> 21 21 <div id="stars"></div> 22 <hr />22 <hr> 23 23 <div id="currentRate"></div> 24 24 </body> -
lang/javascript/ratingstars/trunk/examples/halfrated.html
- Property svn:mime-type set to text/html; charset=UTF-8
r3309 r20942 21 21 <h1>RatingStars Example</h1> 22 22 <div id="stars"></div> 23 <hr />23 <hr> 24 24 <div id="currentRate"></div> 25 25 </body> -
lang/javascript/ratingstars/trunk/examples/images/sun1.gif
- Property svn:mime-type changed from application/octet-stream to image/gif
-
lang/javascript/ratingstars/trunk/examples/images/sun2.gif
- Property svn:mime-type changed from application/octet-stream to image/gif
-
lang/javascript/ratingstars/trunk/examples/images/sun3.gif
- Property svn:mime-type changed from application/octet-stream to image/gif
-
lang/javascript/ratingstars/trunk/examples/images/sun9.gif
- Property svn:mime-type changed from application/octet-stream to image/gif
-
lang/javascript/ratingstars/trunk/examples/messages.html
- Property svn:mime-type set to text/html; charset=UTF-8
r3309 r20942 30 30 <div id="message"></div> 31 31 <div id="stars"></div> 32 <hr />32 <hr> 33 33 <div id="currentRate"></div> 34 34 </body> -
lang/javascript/ratingstars/trunk/examples/notfreeze.html
- Property svn:mime-type set to text/html; charset=UTF-8
r3309 r20942 21 21 <h1>RatingStars Example</h1> 22 22 <div id="stars"></div> 23 <hr />23 <hr> 24 24 <div id="currentRate"></div> 25 25 </body> -
lang/javascript/ratingstars/trunk/examples/pulsate.html
- Property svn:mime-type set to text/html; charset=UTF-8
r3309 r20942 23 23 <h1>RatingStars Example</h1> 24 24 <div id="stars"></div> 25 <hr />25 <hr> 26 26 <div id="currentRate"></div> 27 27 </body> -
lang/javascript/ratingstars/trunk/lib/ratingstars.js
r3309 r20942 53 53 onDefault: [] 54 54 }; 55 } 55 }; 56 56 RatingStars.Container.prototype.setCurrentRate = function (rate) { 57 57 this.options.currentRate = rate; 58 } 58 }; 59 59 60 60 RatingStars.Container.prototype.getCurrentRate = function () { … … 63 63 rate += 0.5; 64 64 return rate; 65 } 65 }; 66 66 67 67 RatingStars.Container.prototype.checkEssentialOptions = function () { … … 70 70 if (!this.options.unratedStarImage) 71 71 throw "set unratedStarImage."; 72 } 72 }; 73 73 74 74 RatingStars.Container.prototype.setElement = function (element) { 75 75 this.element = document.getElementById(element); 76 } 76 }; 77 77 78 78 RatingStars.Container.prototype.getElement = function () { 79 79 return this.element; 80 } 80 }; 81 81 82 82 RatingStars.Container.prototype.setup = function (element) { … … 94 94 var span = document.createElement('span'); 95 95 try { span.style.cursor = 'pointer' } catch (e) { 96 try { span.style.cursor = 'hand' } catch (e) { }96 try { span.style.cursor = 'hand' } catch (e) { } 97 97 } 98 98 var imgElement = document.createElement('img'); … … 111 111 element.appendChild(this.stars[j]); 112 112 this.setDefaultRate(); 113 } 113 }; 114 114 115 115 RatingStars.Container.prototype.registerCallback = function (type, callback) { … … 118 118 throw "Unknown event, " + type; 119 119 callbacks.push(callback); 120 } 120 }; 121 121 122 122 RatingStars.Container.prototype.register = function () { … … 139 139 star.onmouseout = null; 140 140 } 141 } 141 }; 142 142 143 143 RatingStars.Container.prototype.setDefaultRate = function () { … … 147 147 for (var i = 0; i < callbacks.length; i++) 148 148 callbacks[i](currentRate); 149 } 149 }; 150 150 151 151 RatingStars.Container.prototype.changeRate = function (userRate, isUserMode) { … … 170 170 } 171 171 } 172 } 172 }; 173 173 174 174 RatingStars.Container.prototype.loadPlugin = function (pluginName) { … … 179 179 plugin.load(this); 180 180 return plugin; 181 } 181 }; 182 182 183 183 RatingStars.Plugin = {}; 184 RatingStars.Plugin.MessageLabel = function () { } 184 RatingStars.Plugin.MessageLabel = function () { }; 185 185 RatingStars.Plugin.MessageLabel.prototype.load = function (rating) { 186 186 var extention = { … … 219 219 elm.innerHTML = rating._defaultMessage; 220 220 } ); 221 } 222 221 }; 222
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)