fistcommit

This commit is contained in:
Kicap
2025-03-21 04:09:18 +08:00
commit 580ccbfd0d
1393 changed files with 534360 additions and 0 deletions

View File

@ -0,0 +1,21 @@
$(document).ready(function () {
var rotationMultiplier = 3.6;
$( ".js__circle" ).each(function() {
// Save all of its classes in an array.
var classList = $( this ).attr('class').split(/\s+/);
// Iterate over the array
for (var i = 0; i < classList.length; i++) {
if (classList[i].match("^p")) {
var rotationPercentage = classList[i].substring(1, classList[i].length);
var rotationDegrees = rotationMultiplier*rotationPercentage;
$('.c100.p'+rotationPercentage+ ' .bar').css({
'-webkit-transform' : 'rotate(' + rotationDegrees + 'deg)',
'-moz-transform' : 'rotate(' + rotationDegrees + 'deg)',
'-ms-transform' : 'rotate(' + rotationDegrees + 'deg)',
'-o-transform' : 'rotate(' + rotationDegrees + 'deg)',
'transform' : 'rotate(' + rotationDegrees + 'deg)'
});
}
}
});
});