PageSourceSearch

https://tagmar.com.br/ScriptResource.axd?d=pya1FPTEOVlWcBz7Z4n_HVg…GSj-tYloAevqgY9LGRV22Vw2&t=ffffffffd08c13b3

js tagmar.com.br collected 2026-09-27 01:04:40 UTC 6,767 bytes, 111 lines download raw bytes

1Type.registerNamespace('AjaxControlToolkit');AjaxControlToolkit.BoxCorners = function() {
2throw Error.invalidOperation();}
3AjaxControlToolkit.BoxCorners.prototype = {
4None : 0x00,
5TopLeft : 0x01,
6TopRight : 0x02,
7BottomRight : 0x04,
8BottomLeft : 0x08,
9Top : 0x01 | 0x02,
10Right : 0x02 | 0x04,
11Bottom : 0x04 | 0x08,
12Left : 0x08 | 0x01,
13All : 0x01 | 0x02 | 0x04 | 0x08
14}
15AjaxControlToolkit.BoxCorners.registerEnum("AjaxControlToolkit.BoxCorners", true);AjaxControlToolkit.RoundedCornersBehavior = function(element) {
16AjaxControlToolkit.RoundedCornersBehavior.initializeBase(this, [element]);this._corners = AjaxControlToolkit.BoxCorners.All;this._radius = 5;this._color = null;this._parentDiv = null;this._originalStyle = null;this._borderColor = null;}
17AjaxControlToolkit.RoundedCornersBehavior.prototype = {
18initialize : function() {
19AjaxControlToolkit.RoundedCornersBehavior.callBaseMethod(this, 'initialize');this.buildParentDiv();},
20dispose : function() {
21this.disposeParentDiv();AjaxControlToolkit.RoundedCornersBehavior.callBaseMethod(this, 'dispose');},
22buildParentDiv : function() {
23var e = this.get_element();if (!e) return;this.disposeParentDiv();var color = this.getBackgroundColor();var originalWidth = e.offsetWidth;var newParent = e.cloneNode(false);this.moveChildren(e, newParent);this._originalStyle = e.style.cssText;e.style.backgroundColor = "transparent";e.style.verticalAlign = "top";e.style.padding = "0";e.style.overflow = "";e.style.className = "";if (e.style.height) {
24e.style.height = parseInt($common.getCurrentStyle(e, 'height')) + (this._radius * 2) + "px";} else {
25if (!e.style.width && (0 < originalWidth)) {
26e.style.width = originalWidth + "px";}
27}
28newParent.style.position = "";newParent.style.border = "";newParent.style.margin = "";newParent.style.width = "100%";newParent.id = "";newParent.removeAttribute("control");if (this._borderColor) {
29newParent.style.borderTopStyle = "none";newParent.style.borderBottomStyle = "none";newParent.style.borderLeftStyle = "solid";newParent.style.borderRightStyle = "solid";newParent.style.borderLeftColor = this._borderColor;newParent.style.borderRightColor = this._borderColor;newParent.style.borderLeftWidth = "1px";newParent.style.borderRightWidth = "1px";if (this._radius == 0) {
30newParent.style.borderTopStyle = "solid";newParent.style.borderBottomStyle = "solid";newParent.style.borderTopColor = this._borderColor;newParent.style.borderBottomColor = this._borderColor;newParent.style.borderTopWidth = "1px";newParent.style.borderBottomWidth = "1px";}
31} else {
32newParent.style.borderTopStyle = "none";newParent.style.borderBottomStyle = "none";newParent.style.borderLeftStyle = "none";newParent.style.borderRightStyle = "none";}
33var lastDiv = null;var radius = this._radius;var lines = this._radius;var lastDelta = 0;for (var i = lines;i > 0;i--) {
34var angle = Math.acos(i / radius);var delta = radius - Math.round(Math.sin(angle) * radius);var newDiv = document.createElement("DIV");newDiv.__roundedDiv = true;newDiv.style.backgroundColor = color;newDiv.style.marginLeft = delta + "px";newDiv.style.marginRight = (delta - (this._borderColor ? 2 : 0)) + "px";newDiv.style.height = "1px";newDiv.style.fontSize = "1px";newDiv.style.overflow = "hidden";if (this._borderColor) {
35newDiv.style.borderLeftStyle = "solid";newDiv.style.borderRightStyle = "solid";newDiv.style.borderLeftColor = this._borderColor;newDiv.style.borderRightColor = this._borderColor;var offset = Math.max(0, lastDelta - delta - 1);newDiv.style.borderLeftWidth = (offset + 1) + "px";newDiv.style.borderRightWidth = (offset + 1) + "px";if (i == lines) {
36newDiv.__roundedDivNoBorder = true;newDiv.style.backgroundColor = this._borderColor;}
37}
38e.insertBefore(newDiv, lastDiv);var topDiv = newDiv;newDiv = newDiv.cloneNode(true);newDiv.__roundedDiv = true;e.insertBefore(newDiv, lastDiv);var bottomDiv = newDiv;lastDiv = newDiv;lastDelta = delta;if (!this.isCornerSet(AjaxControlToolkit.BoxCorners.TopLeft)) {
39topDiv.style.marginLeft = "0";if (this._borderColor) {
40topDiv.style.borderLeftWidth = "1px";}
41}
42if (!this.isCornerSet(AjaxControlToolkit.BoxCorners.TopRight)) {
43topDiv.style.marginRight = "0";if (this._borderColor) {
44topDiv.style.borderRightWidth = "1px";topDiv.style.marginRight = "-2px";}
45}
46if (!this.isCornerSet(AjaxControlToolkit.BoxCorners.BottomLeft)) {
47bottomDiv.style.marginLeft = "0";if (this._borderColor) {
48bottomDiv.style.borderLeftWidth = "1px";}
49}
50if (!this.isCornerSet(AjaxControlToolkit.BoxCorners.BottomRight)) {
51bottomDiv.style.marginRight = "0";if (this._borderColor) {
52bottomDiv.style.borderRightWidth = "1px";bottomDiv.style.marginRight = "-2px";}
53}
54}
55e.insertBefore(newParent, lastDiv);this._parentDiv = newParent;},
56disposeParentDiv : function() {
57if (this._parentDiv) {
58var e = this.get_element();var children = e.childNodes;for (var i = children.length - 1;i >=0;i--) {
59var child = children[i];if (child) {
60if (child == this._parentDiv) {
61this.moveChildren(child, e);}
62try {
63e.removeChild(child);} catch(e) {
64}
65}
66}
67if (this._originalStyle) {
68e.style.cssText = this._originalStyle;this._originalStyle = null;}
69this._parentDiv = null;}
70},
71getBackgroundColor : function() {
72if (this._color) {
73return this._color;}
74return $common.getCurrentStyle(this.get_element(), 'backgroundColor');},
75moveChildren : function(src, dest) {
76var moveCount = 0;while (src.hasChildNodes()) {
77var child = src.childNodes[0];child = src.removeChild(child);dest.appendChild(child);moveCount++;}
78return moveCount;},
79isCornerSet : function(corner) {
80return (this._corners & corner) != AjaxControlToolkit.BoxCorners.None;},
81setCorner : function(corner, value) {
82if (value) {
83this.set_Corners(this._corners | corner);} else {
84this.set_Corners(this._corners & ~corner);}
85},
86get_Color : function() {
87return this._color;},
88set_Color : function(value) {
89if (value != this._color) {
90this._color = value;this.buildParentDiv();this.raisePropertyChanged('Color');}
91},
92get_Radius : function() {
93return this._radius;},
94set_Radius : function(value) {
95if (value != this._radius) {
96this._radius = value;this.buildParentDiv();this.raisePropertyChanged('Radius');}
97},
98get_Corners : function() {
99return this._corners;},
100set_Corners : function(value) {
101if (value != this._corners) {
102this._corners = value;this.buildParentDiv();this.raisePropertyChanged("Corners");}
103},
104get_BorderColor : function() {
105return this._borderColor;},
106set_BorderColor : function(value) {
107if (value != this._borderColor) {
108this._borderColor = value;this.buildParentDiv();this.raisePropertyChanged("BorderColor");}
109}
110}
111AjaxControlToolkit.RoundedCornersBehavior.registerClass('AjaxControlToolkit.RoundedCornersBehavior', AjaxControlToolkit.BehaviorBase);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.