Except as expressly granted in the Software License Agreement for Mac OS X, no other copyright, patent, or other intellectual property license or right is granted, either expressly or by implication, by Apple. Your use of this source code signifies your agreement to such license terms andĬonditions. ![]() ![]() NOTE: Use of this source code is subject to the terms of the Software License Agreement for Mac OS X, which accompanies the code. The script sets the start time for the animation, the duration of the animation, and the beginning and final opacity.Ĭopyright © 2005, Apple Computer, Inc. The second half of the JavaScript provides the animation for the switch from the old to new fortune. If there is a problem with the widget plugin, the JavaScript sends an alert to the console. Once it has the fortune, the script uses the animation in the animation portion of the script to replace the existing fortune. Using a plugin, the widget retrieves a fortune. You can see that it is divided into two sections: the Fortune-specific code that drives the widget and the animation code. Open the Fortune.js file to see the JavaScript code for the Fortune widget.
0 Comments
Leave a Reply. |