1$(function () { 2 3 if ($('div#top')[0].innerText == 103 || $('div#top')[0].innerText == 147) { 4 5 $('body').append('<div class="selector-color-options"></div>'); 6 $('.selector-color-options').append('<a href="grey" class="selector-color-default"></a>'); 7 $('.selector-color-options').append('<a href="blue" class="selector-color-blue"></a>'); 8 $('.selector-color-options').append('<a href="green" class="selector-color-green"></a>'); 9 $('.selector-color-options').append('<a href="red" class="selector-color-red"></a>'); 10 $('.selector-color-options').append('<a href="yellow" class="selector-color-yellow"></a>'); 11 $('.selector-color-options').append('<a href="pink" class="selector-color-pink"></a>'); 12 13 $('body').append( 14 '<style>\ 15 .selector-color-options {\ 16 right: 0px;\ 17 bottom: 0px;\ 18 top: 5px;\ 19 }\ 20 .selector-color-options a {\ 21 width: 40px;\ 22 height: 40px;\ 23 margin-left: 10px;\ 24 border-radius: 50%;\ 25 display: inline-block;\ 26 box-shadow: 0 2px 10px rgba(0,0,0,0.4);\ 27 }\ 28 .selector-color-default { background: #545454; }\ 29 .selector-color-blue { background: #2b5d96; }\ 30 .selector-color-green { background: #015d0d; }\ 31 .selector-color-red { background: #960909; }\ 32 .selector-color-yellow { background: #ebaf3d; }\ 33 .selector-color-pink { background: #af0347; }\ 34 </style>' 35 ); 36 }; 37 38 $('[class^="selector-color-"]').click(function (event) { 39 40 event.preventDefault(); 41 event.stopPropagation(); 42 43 var newColor = $(this).attr('href'); 44 45 $.ajax({
46 url: location.origin + $('#BackgroundSite').val(), 47 data: { 48 des_cor_background_sit: newColor 49 }, 50 type: "POST", 51 dataType: "JSON", 52 cache: false, 53 success: function (data) { 54 location.reload(); 55 }, 56 error: function () { 57 swal({ 58 title: "Erro", 59 text: "Ocorreu um erro ao tentar alterar a cor do site!", 60 type: 'error', 61 animation: false 62 }); 63 } 64 }); 65 }); 66});
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.