From 2f4513339337bb8aa6c9dfe1191d169b4fc57999 Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Fri, 21 Feb 2014 14:31:23 -0500 Subject: chore(examples): remove ancient examples from the tree Let these poor scripts retire, goodness. Closes #6398 Closes #3310 --- example/buzz/buzz.css | 89 -------------------------------------------------- example/buzz/buzz.html | 50 ---------------------------- example/buzz/buzz.js | 46 -------------------------- 3 files changed, 185 deletions(-) delete mode 100644 example/buzz/buzz.css delete mode 100644 example/buzz/buzz.html delete mode 100644 example/buzz/buzz.js (limited to 'example/buzz') diff --git a/example/buzz/buzz.css b/example/buzz/buzz.css deleted file mode 100644 index 5fd5763d..00000000 --- a/example/buzz/buzz.css +++ /dev/null @@ -1,89 +0,0 @@ -body { - background: -webkit-gradient(linear, left top, left 100, from(#bbb), to(#fff)); - background-repeat: no-repeat; - margin: 0px; - font-family: sans-serif; - font-size: 12px; -} - -body > div { - border-top: 1px solid white; - border-bottom: 1px solid black; - text-align: center; - background: -webkit-gradient(linear, left top, left bottom, from(#CCC), to(#888)); - -webkit-background-origin: padding; -webkit-background-clip: content; -} -body > div button { - margin: 5px; -} - -body > div span:FIRST-CHILD { - float: left; - font-family: monospace; - font-size: 1.5em; - color: black; - padding: 2px 5px; -} - -body > div span:last-child { - float: right; -} - -ul { - list-style: none; - padding: 10px; - margin: 0; -} - -body > ul > li { - border: 1px solid black; - margin: 15px 5px; - padding: 0; - -webkit-box-shadow: 5px 5px 5px #888; -} - -body > ul > li > h1 { - margin: 0; - background: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#999)); - font-size: 13px; - border-bottom: 1px solid black; -} - -h1 > img, -li > img { - max-height: 30px; - max-width: 30px; - vertical-align: middle; - padding: 3px; -} - -a > img { - margin-right: 5px; - margin-top: 5px; -} - -body > ul > li > h1 > a:last-child { - float: right; - margin: 10px; -} - -body > ul > li > div { - background-color: white; - background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd)); - margin: 0; - padding: 10px; -} - -body > ul > li ul { - margin: 0; - padding: 0; - margin-left: 5px; - border-left: 5px solid lightgray; -} - -body > ul > li ul > li { - margin: 0; - padding: 10px; - background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd)); -} - diff --git a/example/buzz/buzz.html b/example/buzz/buzz.html deleted file mode 100644 index f2bf21ac..00000000 --- a/example/buzz/buzz.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - -
- <angular/> Buzz - - filter: - - - - user: - - - -
- - - diff --git a/example/buzz/buzz.js b/example/buzz/buzz.js deleted file mode 100644 index 7e7f2f66..00000000 --- a/example/buzz/buzz.js +++ /dev/null @@ -1,46 +0,0 @@ -angular.module.ng('myApplication', function($resource){ - this.Activity = $resource( - 'https://www.googleapis.com/buzz/v1/activities/:userId/:visibility/:activityId/:comments', - {alt:'json', callback:'JSON_CALLBACK'}, - { - get: {method:'JSON', params:{visibility:'@self'}}, - replies: {method:'JSON', params:{visibility:'@self', comments:'@comments'}} - }); -}, {inject:['$resource']}); - -function BuzzController() { - this.$watch('$location.hashPath', this.userChange); -} -BuzzController.prototype = { - userChange: function() { - this.userId = this.$location.hashPath; - this.activities = this.Activity.get({userId:this.userId}); - }, - - expandReplies: function(activity) { - var self = this; - if (activity.replies) { - activity.replies.show = !activity.replies.show; - } else { - activity.replies = this.Activity.replies({userId:this.userId, activityId:activity.id}, function() { - activity.replies.show = true; - }); - } - } -}; - -angular.widget('my:expand', function(element){ - element.css('display', 'block'); - this.descend(true); - return function(element) { - element.hide(); - var watch = element.attr('expand'); - this.$watch(watch, function(value){ - if (value) { - element.delay(0).slideDown('slow'); - } else { - element.slideUp('slow'); - } - }); - }; -}); -- cgit v1.2.3