Updated CI for Blazor WebAssembly. Added styles for product cards.
This commit is contained in:
@@ -41,19 +41,15 @@ public static class ImageUrlProvider
|
||||
|
||||
var imageUrlTemplate = "//img.dlsite.jp/[folder]/images2/[imageType1]/[imageWorkType]/[fullRoundedProductId]/[productId][imageType2]_img_[imageSize].jpg";
|
||||
|
||||
var productIdWithoutPrefixString = productId.Substring(2);
|
||||
string productIdWithoutPrefixString = productId.Substring(2);
|
||||
int productIdWithoutPrefix = Convert.ToInt32(productId.Substring(2));
|
||||
|
||||
string productIdPrefix = productId.Substring(0, 2);
|
||||
|
||||
double something = (double)((productIdWithoutPrefix / 1000) * 1000);
|
||||
int roundedProductId = (int)Math.Round(Math.Ceiling((double)productIdWithoutPrefix / 1000) * 1000);
|
||||
|
||||
//string actualRoundedProductId = ("000000" + roundedProductId.ToString()).Substring(roundedProductId.ToString().Length);
|
||||
//string fullRoundedProductId = productIdPrefix + actualRoundedProductId;
|
||||
|
||||
var productIdWithPrefixStringLength = productIdWithoutPrefixString.Length;
|
||||
var zeroPadLength = productIdWithPrefixStringLength - roundedProductId.ToString().Length;
|
||||
int productIdWithPrefixStringLength = productIdWithoutPrefixString.Length;
|
||||
int zeroPadLength = productIdWithPrefixStringLength - roundedProductId.ToString().Length;
|
||||
|
||||
var fullRoundedProductId = productIdPrefix.PadRight(productIdPrefix.Length + zeroPadLength, '0') + roundedProductId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user