AAP FLU VACCINE RECOMMENDATIONS FOR 2017-2018
The flu vaccine should be given to everyone 6 months and older, as it is the best option for protection during the upcoming season, according to the American Academy of Pediatrics. The annual flu vaccine significantly reduces a child's risk of severe influenza and death.

During the 2016-17 season, more than 100 U.S. children died of the flu, and thousands more were hospitalized for severe illness or complications from the virus. Historically, more than 80 percent of children who died of influenza were not vaccinated.

In its policy statement, "Recommendations for Prevention and Control of Influenza in Children, 2017-2018," the AAP recommends that pediatricians offer influenza vaccine to all children 6 months of age and older, as soon as the vaccine becomes available, in order to complete vaccination and provide protection before the flu season starts. The statement will appear in the October 2017 issue of Pediatrics (published online Sept. 4, 2017).

"Getting a flu shot as soon as the vaccine is available in your community should be on every parent's checklist, along with other back-to-school routines," said Flor Munoz, MD, FAAP, co-author of the report. "We know that the flu should not be taken lightly. Everyone in the household, including pregnant women, grandparents, and child care providers, should be vaccinated to help prevent its spread."

The Academy recommends:
Children receive influenza vaccinations by the end of October, if possible. Children who need two doses (those 6 months through 8 years, who have not previously been fully vaccinated) should receive the first vaccine early in the season for optimal protection.

For the second consecutive year, the Academy supports a recommendation by the CDC not to use the live attenuated intranasal influenza vaccine, which performed poorly against influenza A (H1N1) pdm09 viruses in recent influenza seasons.

Special effort should be made to vaccinate all children 6 months and older who have conditions that increase their risk of complications of flu. This includes infants born preterm and those with chronic medical conditions, including asthma and other chronic lung diseases, heart disease, diabetes and other metabolic problems, and weakened immune systems, among others. 

Influenza vaccine should be given to all women who are pregnant, considering pregnancy or are in the

postpartum  period or are breastfeeding during the flu season.

All health care personnel, child care providers and staff also should receive their annual flu shot because

they often care for individuals at high risk for influenza-related complications.

"Vaccination is the best available preventive measure we have against influenza." said Henry Bernstein,

MD, MHCM, FAAP, co-author of the recommendations. "Yet, there is lots of room for improvement in

influenza vaccination because overall influenza vaccination rates have been suboptimal in both children

and adults during the past 7 seasons."

The influenza vaccine is given by injection into the muscle and is inactivated, meaning it does not contain

a live flu virus and cannot cause the flu. The vaccine comes in either a trivalent or quadrivalent form, which protect against three strains (2 A and 1 B) or four strains (2 A and 2 B) of the virus, respectively. While the influenza A  (H1N1) virus in both formulations differs from that contained in the 2016-2017 seasonal vaccines, the influenza A (H3N2) vaccine strain and influenza B vaccine strains are the same.

In addition, antiviral medications are important in the control of influenza, but are not a substitute for influenza vaccination. Pediatricians should promptly identify children suspected of having influenza for timely initiation of antiviral treatment, when indicated, to reduce morbidity and mortality. "Clinical judgment is an important factor in treatment decisions for children who present with influenza-like illness," said Dr. Bernstein. "The best results are seen when treatment is started within 48 hours of symptom onset."

*The American Academy of Pediatrics is an organization of 66,000 primary care pediatricians, pediatric medical subspecialists and pediatric surgical specialists dedicated to the health, safety and well-being of infants, children, adolescents and young adults. For more information, visit www.aap.org and follow us on Twitter @AmerAcadPeds

News and Events

633 Dunlawton AVe.

Port Orange, FL 32127

P: 386-424-1414  F:386-424-9130

 10 Things for Parents to Know About the 2017-2018 Flu Vaccine 
                                                                                     ​​​By: Kathleen Berchelmann MD, FAAP

1.  The flu vaccine is essential for children.
The flu virus is common and unpredictable, and it can cause serious complications and death, even in healthy children.

The influenza immunization each year is the best way to protect children.  At least 101 children died from the flu in the 2016-2017 season, If you choose not to vaccinate your child, you not only miss the opportunity to protect your own child but also can put others at risk.

2.  Now is the time to get vaccinated.
Influenza vaccine shipments have already begun, and will continue through the fall and winter. Call your pediatrician to ask when the vaccine will be available. 

Infants and children up to 8 years of age receiving the flu shot for the first time may need two doses of the vaccine, administered four weeks apart. It is important that these children get their first dose as soon as possible to be sure they can complete both doses before the flu season begins. 

3.  This year's flu vaccine is only available as a shot. 
The inactivated influenza vaccine (IIV) is given by intramuscular injection and is approved for children 6 months of age and older. Depending on the number of flu strains it contains, it is available in both trivalent (IIV3 – two A and one B virus) and quadrivalent (IIV4 – two A and two B viruses) forms. 


4.  It doesn't matter which form of the vaccine you get.
The quadrivalent influenza vaccines for the 2017-2018 season contain the same three strains as the trivalent vaccine, plus an additional B strain. Although this may offer improved protection, the AAP does not give preference for one type of flu vaccine over another. 

Please don't delay vaccination in order to wait for a specific vaccine. Influenza virus is unpredictable. What's most important is that people receive the vaccine as soon as possible. 

5.  You can't get the flu from the flu vaccine.
Flu vaccines are made from killed viruses. Mild symptoms, such as nausea, fatigue, headache, muscle aches, and chills, can occur.

The side effects of the flu vaccine are mild (and nothing compared to having the flu). The most common side effects are pain and tenderness at the site of injection. Fever is also seen within 24 hours after immunization in approximately 10% to 35% of children younger than 2 years of age but rarely in older children and adults. These symptoms are usually mild and resolve on their own in a couple of days.

6.  If you catch the flu and are vaccinated, you will get a milder form of the disease.
We know that flu vaccines are about 60% effective--yes, we all wish that number were higher. The good news is that vaccinated people who get the flu usually get a mild form of the disease, according to a study. People who are not vaccinated will likely be in bed with fever and miserable and even could develop a complication. 

7.  There should be plenty of vaccine for everyone this year.
For the 2017-2018 season, manufacturers have projected that they will produce between up to 166 million doses of flu vaccine. 

8.  The influenza vaccine doesn't cause autism.
A robust body of research continues to show that the influenza vaccine is safe and is not associated with autism.

9.  The flu vaccine can be given at the same time as other vaccines.
The flu vaccine may be given at the same time as other vaccines, but at a different place on the body. It is also important to note that children 6 months through 8 years of age may need two doses spaced one month apart to be fully protected. These children should receive their first dose as soon as the vaccine is available in their community. Live vaccines (like the MMR and chickenpox vaccines) may be given together or at least 4 weeks apart.

10.  Children with egg allergy can get the flu vaccine.
Children with an egg allergy can safely get the flu shot from their pediatrician without going to an allergy specialist. Even those with a history of severe egg allergy don't have to treat getting the flu vaccine differently than getting any other vaccine, because these people are not likely to have a reaction to the flu vaccine. 
​ 

317 S. Dixie Freeway

New Smyrna Beach, FL 32169

P: 386-424-1414  F:386-424-9130

/* angular-svg-round-progressbar@0.3.8 2015-10-21 */ // shim layer with setTimeout fallback // credit Erik Möller and http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/ 'use strict'; (function() { var lastTime = 0; var vendors = ['webkit', 'moz']; for(var x = 0; x < vendors.length="" &&="" !window.requestanimationframe;="" ++x)="" {="" window.requestanimationframe="window[vendors[x]+'RequestAnimationFrame'];" window.cancelanimationframe="window[vendors[x]+'CancelAnimationFrame']" ||="" window[vendors[x]+'cancelrequestanimationframe'];="" }="" if="" (!window.requestanimationframe){="" window.requestanimationframe="function(callback)" {="" var="" currtime="new" date().gettime();="" var="" timetocall="Math.max(0," 16="" -="" (currtime="" -="" lasttime));="" var="" id="window.setTimeout(function()" {="" callback(currtime="" +="" timetocall);="" },="" timetocall);="" lasttime="currTime" +="" timetocall;="" return="" id;="" };="" }="" if="" (!window.cancelanimationframe){="" window.cancelanimationframe="function(id)" {="" window.cleartimeout(id);="" };="" }="" }());="" angular.module('angular-svg-round-progress',="" []);="" 'use="" strict';="" angular.module('angular-svg-round-progress').constant('roundprogressconfig',="" {="" max:="" 50,="" semi:="" false,="" rounded:="" false,="" responsive:="" false,="" clockwise:="" true,="" radius:="" 100,="" color:="" "#45ccce",="" bgcolor:="" "#eaeaea",="" stroke:="" 15,="" duration:="" 800,="" animation:="" "easeoutcubic",="" offset:="" 0="" });="" 'use="" strict';="" angular.module('angular-svg-round-progress').service('roundprogressservice',="" [function(){="" var="" service="{};" var="" isnumber="angular.isNumber;" var="" base="document.head.querySelector('base');" fixes="" issues="" if="" the="" document="" has="" a=""> element service.resolveColor = base && base.href ? function(value){ var hashIndex = value.indexOf('#'); if(hashIndex > -1 && value.indexOf('url') > -1){ return value.slice(0, hashIndex) + window.location.href + value.slice(hashIndex); } return value; } : function(value){ return value; }; // credits to http://modernizr.com/ for the feature test service.isSupported = !!(document.createElementNS && document.createElementNS('http://www.w3.org/2000/svg', "svg").createSVGRect); // utility function var polarToCartesian = function(centerX, centerY, radius, angleInDegrees) { var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0; return { x: centerX + (radius * Math.cos(angleInRadians)), y: centerY + (radius * Math.sin(angleInRadians)) }; }; // deals with floats passed as strings service.toNumber = function(value){ return isNumber(value) ? value : parseFloat((value + '').replace(',', '.')); }; service.getOffset = function(element, options){ var value = +options.offset || 0; if(options.offset === 'inherit'){ var parent = element; var parentScope; while(!parent.hasClass('round-progress-wrapper')){ if(service.isDirective(parent)){ parentScope = parent.scope().$parent.getOptions(); value += ((+parentScope.offset || 0) + (+parentScope.stroke || 0)); } parent = parent.parent(); } } return value; }; // credit to http://stackoverflow.com/questions/5736398/how-to-calculate-the-svg-path-for-an-arc-of-a-circle service.updateState = function(val, total, R, ring, size, isSemicircle) { if(!size) return ring; var value = val > 0 ? Math.min(val, total) : 0; var type = isSemicircle ? 180 : 359.9999; var perc = total === 0 ? 0 : (value / total) * type; var x = size/2; var start = polarToCartesian(x, x, R, perc); // in this case x and y are the same var end = polarToCartesian(x, x, R, 0); var arcSweep = (perc <= 180="" "0"="" :="" "1");="" var="" d="[" "m",="" start.x,="" start.y,="" "a",="" r,="" r,="" 0,="" arcsweep,="" 0,="" end.x,="" end.y="" ].join("="" ");="" return="" ring.attr('d',="" d);="" };="" service.isdirective="function(el){" if(el="" &&="" el.length){="" return="" (typeof="" el.attr('round-progress')="" !="=" 'undefined'="" ||="" el[0].nodename.tolowercase()="==" 'round-progress');="" }="" return="" false;="" };="" easing="" functions="" by="" robert="" penner="" source:="" http://www.robertpenner.com/easing/="" license:="" http://www.robertpenner.com/easing_terms_of_use.html="" service.animations="{" t:="" is="" the="" current="" time="" (or="" position)="" of="" the="" tween.="" this="" can="" be="" seconds="" or="" frames,="" steps,="" seconds,="" ms,="" whatever="" –="" as="" long="" as="" the="" unit="" is="" the="" same="" as="" is="" used="" for="" the="" total="" time.="" b:="" is="" the="" beginning="" value="" of="" the="" property.="" c:="" is="" the="" change="" between="" the="" beginning="" and="" destination="" value="" of="" the="" property.="" d:="" is="" the="" total="" time="" of="" the="" tween.="" jshint="" eqeqeq:="" false,="" -w041:="" true="" linearease:="" function(t,="" b,="" c,="" d)="" {="" return="" c="" *="" t="" d="" +="" b;="" },="" easeinquad:="" function="" (t,="" b,="" c,="" d)="" {="" return="" c*(t/="d)*t" +="" b;="" },="" easeoutquad:="" function="" (t,="" b,="" c,="" d)="" {="" return="" -c="" *(t/="d)*(t-2)" +="" b;="" },="" easeinoutquad:="" function="" (t,="" b,="" c,="" d)="" {="" if="" ((t/="d/2)">< 1)="" return="" c/2*t*t="" +="" b;="" return="" -c/2="" *="" ((--t)*(t-2)="" -="" 1)="" +="" b;="" },="" easeincubic:="" function="" (t,="" b,="" c,="" d)="" {="" return="" c*(t/="d)*t*t" +="" b;="" },="" easeoutcubic:="" function="" (t,="" b,="" c,="" d)="" {="" return="" c*((t="t/d-1)*t*t" +="" 1)="" +="" b;="" },="" easeinoutcubic:="" function="" (t,="" b,="" c,="" d)="" {="" if="" ((t/="d/2)">< 1)="" return="" c/2*t*t*t="" +="" b;="" return="" c/2*((t-="2)*t*t" +="" 2)="" +="" b;="" },="" easeinquart:="" function="" (t,="" b,="" c,="" d)="" {="" return="" c*(t/="d)*t*t*t" +="" b;="" },="" easeoutquart:="" function="" (t,="" b,="" c,="" d)="" {="" return="" -c="" *="" ((t="t/d-1)*t*t*t" -="" 1)="" +="" b;="" },="" easeinoutquart:="" function="" (t,="" b,="" c,="" d)="" {="" if="" ((t/="d/2)">< 1)="" return="" c/2*t*t*t*t="" +="" b;="" return="" -c/2="" *="" ((t-="2)*t*t*t" -="" 2)="" +="" b;="" },="" easeinquint:="" function="" (t,="" b,="" c,="" d)="" {="" return="" c*(t/="d)*t*t*t*t" +="" b;="" },="" easeoutquint:="" function="" (t,="" b,="" c,="" d)="" {="" return="" c*((t="t/d-1)*t*t*t*t" +="" 1)="" +="" b;="" },="" easeinoutquint:="" function="" (t,="" b,="" c,="" d)="" {="" if="" ((t/="d/2)">< 1)="" return="" c/2*t*t*t*t*t="" +="" b;="" return="" c/2*((t-="2)*t*t*t*t" +="" 2)="" +="" b;="" },="" easeinsine:="" function="" (t,="" b,="" c,="" d)="" {="" return="" -c="" *="" math.cos(t/d="" *="" (math.pi/2))="" +="" c="" +="" b;="" },="" easeoutsine:="" function="" (t,="" b,="" c,="" d)="" {="" return="" c="" *="" math.sin(t/d="" *="" (math.pi/2))="" +="" b;="" },="" easeinoutsine:="" function="" (t,="" b,="" c,="" d)="" {="" return="" -c/2="" *="" (math.cos(math.pi*t/d)="" -="" 1)="" +="" b;="" },="" easeinexpo:="" function="" (t,="" b,="" c,="" d)="" {="" return="" (t="=0)" b="" :="" c="" *="" math.pow(2,="" 10="" *="" (t/d="" -="" 1))="" +="" b;="" },="" easeoutexpo:="" function="" (t,="" b,="" c,="" d)="" {="" return="" (t="=d)" b+c="" :="" c="" *="" (-math.pow(2,="" -10="" *="" t/d)="" +="" 1)="" +="" b;="" },="" easeinoutexpo:="" function="" (t,="" b,="" c,="" d)="" {="" if="" (t="=0)" return="" b;="" if="" (t="=d)" return="" b+c;="" if="" ((t/="d/2)">< 1)="" return="" c/2="" *="" math.pow(2,="" 10="" *="" (t="" -="" 1))="" +="" b;="" return="" c/2="" *="" (-math.pow(2,="" -10="" *="" --t)="" +="" 2)="" +="" b;="" },="" easeincirc:="" function="" (t,="" b,="" c,="" d)="" {="" return="" -c="" *="" (math.sqrt(1="" -="" (t/="d)*t)" -="" 1)="" +="" b;="" },="" easeoutcirc:="" function="" (t,="" b,="" c,="" d)="" {="" return="" c="" *="" math.sqrt(1="" -="" (t="t/d-1)*t)" +="" b;="" },="" easeinoutcirc:="" function="" (t,="" b,="" c,="" d)="" {="" if="" ((t/="d/2)">< 1)="" return="" -c/2="" *="" (math.sqrt(1="" -="" t*t)="" -="" 1)="" +="" b;="" return="" c/2="" *="" (math.sqrt(1="" -="" (t-="2)*t)" +="" 1)="" +="" b;="" },="" easeinelastic:="" function="" (t,="" b,="" c,="" d)="" {="" var="" s="1.70158;var" p="0;var" a="c;" if="" (t="=0)" return="" b;="" if="" ((t/="d)==1)" return="" b+c;="" if="" (!p)="" p="d*0.3;" if="" (a="">< math.abs(c))="" {="" a="c;" s="p/4;" }="" else="" s="p/(2*Math.PI)" *="" math.asin="" (c/a);="" return="" -(a*math.pow(2,10*(t-="1))" *="" math.sin(="" (t*d-s)*(2*math.pi)/p="" ))="" +="" b;="" },="" easeoutelastic:="" function="" (t,="" b,="" c,="" d)="" {="" var="" s="1.70158;var" p="0;var" a="c;" if="" (t="=0)" return="" b;="" if="" ((t/="d)==1)" return="" b+c;="" if="" (!p)="" p="d*0.3;" if="" (a="">< math.abs(c))="" {="" a="c;" s="p/4;" }="" else="" s="p/(2*Math.PI)" *="" math.asin="" (c/a);="" return="" a*math.pow(2,-10*t)="" *="" math.sin(="" (t*d-s)*(2*math.pi)/p="" )="" +="" c="" +="" b;="" },="" easeinoutelastic:="" function="" (t,="" b,="" c,="" d)="" {="" jshint="" eqeqeq:="" false,="" -w041:="" true="" var="" s="1.70158;var" p="0;var" a="c;" if="" (t="=0)" return="" b;="" if="" ((t/="d/2)==2)" return="" b+c;="" if="" (!p)="" p="d*(0.3*1.5);" if="" (a="">< math.abs(c))="" {="" a="c;" s="p/4;" }="" else="" s="p/(2*Math.PI)" *="" math.asin="" (c/a);="" if="" (t="">< 1)="" return="" -0.5*(a*math.pow(2,10*(t-="1))" *="" math.sin(="" (t*d-s)*(2*math.pi)/p="" ))="" +="" b;="" return="" a*math.pow(2,-10*(t-="1))" *="" math.sin(="" (t*d-s)*(2*math.pi)/p="" )*0.5="" +="" c="" +="" b;="" },="" easeinback:="" function="" (t,="" b,="" c,="" d,="" s)="" {="" jshint="" eqeqeq:="" false,="" -w041:="" true="" if="" (s="=" undefined)="" s="1.70158;" return="" c*(t/="d)*t*((s+1)*t" -="" s)="" +="" b;="" },="" easeoutback:="" function="" (t,="" b,="" c,="" d,="" s)="" {="" jshint="" eqeqeq:="" false,="" -w041:="" true="" if="" (s="=" undefined)="" s="1.70158;" return="" c*((t="t/d-1)*t*((s+1)*t" +="" s)="" +="" 1)="" +="" b;="" },="" easeinoutback:="" function="" (t,="" b,="" c,="" d,="" s)="" {="" jshint="" eqeqeq:="" false,="" -w041:="" true="" if="" (s="=" undefined)="" s="1.70158;" if="" ((t/="d/2)">< 1)="" return="" c/2*(t*t*(((s*="(1.525))+1)*t" -="" s))="" +="" b;="" return="" c/2*((t-="2)*t*(((s*=(1.525))+1)*t" +="" s)="" +="" 2)="" +="" b;="" },="" easeinbounce:="" function="" (t,="" b,="" c,="" d)="" {="" return="" c="" -="" service.animations.easeoutbounce="" (d-t,="" 0,="" c,="" d)="" +="" b;="" },="" easeoutbounce:="" function="" (t,="" b,="" c,="" d)="" {="" if="" ((t/="d)">< (1/2.75))="" {="" return="" c*(7.5625*t*t)="" +="" b;="" }="" else="" if="" (t="">< (2/2.75))="" {="" return="" c*(7.5625*(t-="(1.5/2.75))*t" +="" 0.75)="" +="" b;="" }="" else="" if="" (t="">< (2.5/2.75))="" {="" return="" c*(7.5625*(t-="(2.25/2.75))*t" +="" 0.9375)="" +="" b;="" }="" else="" {="" return="" c*(7.5625*(t-="(2.625/2.75))*t" +="" 0.984375)="" +="" b;="" }="" },="" easeinoutbounce:="" function="" (t,="" b,="" c,="" d)="" {="" if="" (t="">< d/2)="" return="" service.animations.easeinbounce="" (t*2,="" 0,="" c,="" d)="" *="" 0.5="" +="" b;="" return="" service.animations.easeoutbounce="" (t*2-d,="" 0,="" c,="" d)="" *="" 0.5="" +="" c*0.5="" +="" b;="" }="" };="" return="" service;="" }]);="" 'use="" strict';="" angular.module('angular-svg-round-progress')="" .directive('roundprogress',="" ['$window',="" 'roundprogressservice',="" 'roundprogressconfig',="" function($window,="" service,="" roundprogressconfig){="" var="" base="{" restrict:="" "ea",="" replace:="" true,="" transclude:="" true,="" scope:{="" current:="" "=", max: " =",="" semi:="" "=", rounded: " =",="" clockwise:="" "=", responsive: " =",="" radius:="" "@",="" color:="" "@",="" bgcolor:="" "@",="" stroke:="" "@",="" duration:="" "@",="" animation:="" "@",="" offset:="" "@"="" }="" };="" if(!service.issupported){="" return="" angular.extend(base,="" {="" placeholder="" element="" to="" keep="" the="" structure="" template:="">
' }); } return angular.extend(base, { link: function(scope, element){ var isNested = !element.hasClass('round-progress-wrapper'); var svg = isNested ? element : element.find('svg').eq(0); var ring = svg.find('path').eq(0); var background = svg.find('circle').eq(0); var options = angular.copy(roundProgressConfig); var lastAnimationId; var parentChangedListener; scope.getOptions = function(){ return options; }; var renderCircle = function(){ var isSemicircle = options.semi; var responsive = options.responsive; var radius = +options.radius || 0; var stroke = +options.stroke; var diameter = radius*2; var backgroundSize = radius - (stroke/2) - service.getOffset(element, options); svg.css({ "top": 0, "left": 0, "position": responsive ? "absolute" : "static", "width": responsive ? "100%" : (diameter + "px"), "height": responsive ? "100%" : (isSemicircle ? radius : diameter) + "px", "overflow": "hidden" // on some browsers the background overflows, if in semicircle mode }); // when nested, the element shouldn't define its own viewBox if(!isNested){ // note that we can't use .attr, because if jQuery is loaded, // it lowercases all attributes and viewBox is case-sensitive svg[0].setAttribute('viewBox', '0 0 ' + diameter + ' ' + (isSemicircle ? radius : diameter)); element.css({ "width": responsive ? "100%" : "auto", "position": "relative", "padding-bottom": responsive ? (isSemicircle ? "50%" : "100%") : 0 }); } element.css({ "width": responsive ? "100%" : "auto", "position": "relative", "padding-bottom": responsive ? (isSemicircle ? "50%" : "100%") : 0 }); ring.css({ "stroke": service.resolveColor(options.color), "stroke-width": stroke, "stroke-linecap": options.rounded ? "round": "butt" }); if(isSemicircle){ ring.attr("transform", options.clockwise ? "translate("+ 0 +","+ diameter +") rotate(-90)" : "translate("+ diameter +", "+ diameter +") rotate(90) scale(-1, 1)"); }else{ ring.attr("transform", options.clockwise ? "" : "scale(-1, 1) translate("+ (-diameter) +" 0)"); } background.attr({ "cx": radius, "cy": radius, "r": backgroundSize >= 0 ? backgroundSize : 0 }).css({ "stroke": service.resolveColor(options.bgcolor), "stroke-width": stroke }); }; var renderState = function(newValue, oldValue, preventAnimationOverride){ var max = service.toNumber(options.max || 0); var end = newValue > 0 ? $window.Math.min(newValue, max) : 0; var start = (oldValue === end || oldValue < 0)="" 0="" :="" (oldvalue="" ||="" 0);="" fixes="" the="" initial="" animation="" var="" changeinvalue="end" -="" start;="" var="" easinganimation="service.animations[options.animation];" var="" starttime="new" $window.date();="" var="" duration="+options.duration" ||="" 0;="" var="" preventanimation="preventAnimationOverride" ||="" (newvalue=""> max && oldValue > max) || (newValue < 0="" &&="" oldvalue="">< 0)="" ||="" duration="">< 25;="" var="" radius="options.radius;" var="" circlesize="radius" -="" (options.stroke/2)="" -="" service.getoffset(element,="" options);="" var="" elementsize="radius*2;" var="" issemicircle="options.semi;" stops="" some="" expensive="" animating="" if="" the="" value="" is="" above="" the="" max="" or="" under="" 0="" if(preventanimation){="" service.updatestate(end,="" max,="" circlesize,="" ring,="" elementsize,="" issemicircle);="" }else{="" $window.cancelanimationframe(lastanimationid);="" (function="" animation(){="" var="" currenttime="$window.Math.min(new" date()="" -="" starttime,="" duration);="" service.updatestate(="" easinganimation(currenttime,="" start,="" changeinvalue,="" duration),="" max,="" circlesize,="" ring,="" elementsize,="" issemicircle);="" if(currenttime="">< duration){="" lastanimationid="$window.requestAnimationFrame(animation);" }="" })();="" }="" };="" var="" keys="Object.keys(base.scope).filter(function(key){" return="" key="" !="=" 'current';="" });="" properties="" that="" are="" used="" only="" for="" presentation="" scope.$watchgroup(keys,="" function(newvalue){="" for(var="" i="0;" i="">< newvalue.length;="" i++){="" if(typeof="" newvalue[i]="" !="=" 'undefined'){="" options[keys[i]]="newValue[i];" }="" }="" rendercircle();="" scope.$broadcast('$parentoffsetchanged');="" it="" doesn't="" have="" to="" listen="" for="" changes="" on="" the="" parent="" unless="" it="" inherits="" if(options.offset="==" 'inherit'="" &&="" !parentchangedlistener){="" parentchangedlistener="scope.$on('$parentOffsetChanged'," function(){="" renderstate(scope.current,="" scope.current,="" true);="" rendercircle();="" });="" }else="" if(options.offset="" !="=" 'inherit'="" &&="" parentchangedlistener){="" parentchangedlistener();="" }="" });="" properties="" that="" are="" used="" during="" animation.="" some="" of="" these="" overlap="" with="" the="" ones="" that="" are="" used="" for="" presentation="" scope.$watchgroup(['current',="" 'max',="" 'animation',="" 'duration',="" 'radius',="" 'stroke',="" 'semi',="" 'offset'],="" function(newvalue,="" oldvalue){="" renderstate(service.tonumber(newvalue[0]),="" service.tonumber(oldvalue[0]));="" });="" },="" template:="" function(element){="" var="" parent="element.parent();" var="" directivename='round-progress' ;="" var="" template="[">', '', '', '', '' ]; while(parent.length && !service.isDirective(parent)){ parent = parent.parent(); } if(!parent || !parent.length){ template.unshift('
'); template.push('
'); } return template.join('\n'); } }); }]);