mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Loads jquery from the Server instead of a CDN
This commit is contained in:
@@ -154,10 +154,10 @@
|
||||
// /datum/asset/simple/fontawesome
|
||||
// )
|
||||
|
||||
// /datum/asset/simple/jquery
|
||||
// assets = list(
|
||||
// "jquery.min.js" = 'code/modules/goonchat/browserassets/js/jquery.min.js',
|
||||
// )
|
||||
/datum/asset/simple/jquery
|
||||
assets = list(
|
||||
"jquery.min.js" = 'code/modules/tooltip/jquery.min.js',
|
||||
)
|
||||
|
||||
// /datum/asset/simple/goonchat
|
||||
// assets = list(
|
||||
@@ -508,6 +508,7 @@
|
||||
// It REALLY doesnt matter too much if these arent up to date
|
||||
// They are relatively big
|
||||
assets = list(
|
||||
<<<<<<< HEAD
|
||||
// CHOMP Edit: Restored for chomp station. Removed Tether.
|
||||
"southern_cross_nanomap_z1.png" = 'icons/_nanomaps/southern_cross_nanomap_z1.png',
|
||||
"southern_cross_nanomap_z10.png" = 'icons/_nanomaps/southern_cross_nanomap_z10.png',
|
||||
@@ -536,4 +537,39 @@
|
||||
//"stellardelight_nanomap_z2.png" = 'icons/_nanomaps/sd_deck2.png',
|
||||
//"stellardelight_nanomap_z3.png" = 'icons/_nanomaps/sd_deck3.png',
|
||||
// CHOMP Edit End
|
||||
=======
|
||||
// VOREStation Edit: We don't need Southern Cross
|
||||
// "southern_cross_nanomap_z1.png" = 'icons/_nanomaps/southern_cross_nanomap_z1.png',
|
||||
// "southern_cross_nanomap_z10.png" = 'icons/_nanomaps/southern_cross_nanomap_z10.png',
|
||||
// "southern_cross_nanomap_z2.png" = 'icons/_nanomaps/southern_cross_nanomap_z2.png',
|
||||
// "southern_cross_nanomap_z3.png" = 'icons/_nanomaps/southern_cross_nanomap_z3.png',
|
||||
// "southern_cross_nanomap_z5.png" = 'icons/_nanomaps/southern_cross_nanomap_z5.png',
|
||||
// "southern_cross_nanomap_z6.png" = 'icons/_nanomaps/southern_cross_nanomap_z6.png',
|
||||
"tether_nanomap_z1.png" = 'icons/_nanomaps/tether_nanomap_z1.png',
|
||||
"tether_nanomap_z2.png" = 'icons/_nanomaps/tether_nanomap_z2.png',
|
||||
"tether_nanomap_z3.png" = 'icons/_nanomaps/tether_nanomap_z3.png',
|
||||
"tether_nanomap_z4.png" = 'icons/_nanomaps/tether_nanomap_z4.png',
|
||||
"tether_nanomap_z5.png" = 'icons/_nanomaps/tether_nanomap_z5.png',
|
||||
"tether_nanomap_z6.png" = 'icons/_nanomaps/tether_nanomap_z6.png',
|
||||
"tether_nanomap_z7.png" = 'icons/_nanomaps/tether_nanomap_z7.png',
|
||||
"tether_nanomap_z8.png" = 'icons/_nanomaps/tether_nanomap_z8.png',
|
||||
"tether_nanomap_z9.png" = 'icons/_nanomaps/tether_nanomap_z9.png',
|
||||
"tether_nanomap_z10.png" = 'icons/_nanomaps/tether_nanomap_z10.png',
|
||||
"tether_nanomap_z13.png" = 'icons/_nanomaps/tether_nanomap_z13.png',
|
||||
"tether_nanomap_z14.png" = 'icons/_nanomaps/tether_nanomap_z14.png',
|
||||
"stellardelight_nanomap_z1.png" = 'icons/_nanomaps/sd_deck1.png',
|
||||
"stellardelight_nanomap_z2.png" = 'icons/_nanomaps/sd_deck2.png',
|
||||
"stellardelight_nanomap_z3.png" = 'icons/_nanomaps/sd_deck3.png',
|
||||
"groundbase_nanomap_z1.png" = 'icons/_nanomaps/gb1.png',
|
||||
"groundbase_nanomap_z2.png" = 'icons/_nanomaps/gb2.png',
|
||||
"groundbase_nanomap_z3.png" = 'icons/_nanomaps/gb3.png',
|
||||
"groundbase_nanomap_z4.png" = 'icons/_nanomaps/gbnorth.png',
|
||||
"groundbase_nanomap_z5.png" = 'icons/_nanomaps/gbsouth.png',
|
||||
"groundbase_nanomap_z6.png" = 'icons/_nanomaps/gbeast.png',
|
||||
"groundbase_nanomap_z7.png" = 'icons/_nanomaps/gbwest.png',
|
||||
"groundbase_nanomap_z10.png" = 'icons/_nanomaps/gbmining.png',
|
||||
|
||||
|
||||
// VOREStation Edit End
|
||||
>>>>>>> bfa1362da2... Merge pull request #13780 from ItsSelis/tooltips-stuff
|
||||
)
|
||||
|
||||
5
code/modules/tooltip/jquery.min.js
vendored
Normal file
5
code/modules/tooltip/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -42,6 +42,8 @@ Notes:
|
||||
/datum/tooltip/New(client/C)
|
||||
if (C)
|
||||
owner = C
|
||||
var/datum/asset/A = get_asset_datum(/datum/asset/simple/jquery)
|
||||
A.send(owner)
|
||||
owner << browse(file2text('code/modules/tooltip/tooltip.html'), "window=[control]")
|
||||
..()
|
||||
|
||||
@@ -120,5 +122,3 @@ Notes:
|
||||
if(istype(user))
|
||||
if(user.client && user.client.tooltips)
|
||||
user.client.tooltips.hide()
|
||||
|
||||
|
||||
|
||||
@@ -65,12 +65,12 @@
|
||||
|
||||
.hisgrace .wrap {border-color: #7C1414;}
|
||||
.hisgrace .content {color: #15D512; border-color: #9D1414; background-color: #861414;}
|
||||
|
||||
|
||||
/* TG: Themes */
|
||||
/* ScreenUI */
|
||||
.midnight .wrap {border-color: #2B2B33;}
|
||||
.midnight .content {color: #6087A0; border-color: #2B2B33; background-color: #36363C;}
|
||||
|
||||
|
||||
.plasmafire .wrap {border-color: #21213D;}
|
||||
.plasmafire .content {color: #FFA800 ; border-color: #21213D; background-color:#1D1D36;}
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
.clockwork .wrap {border-color: #170800;}
|
||||
.clockwork .content {color: #B18B25; border-color: #000000; background-color: #5F380E;}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
@@ -93,7 +93,7 @@
|
||||
<div id="wrap" class="wrap">
|
||||
<div id="content" class="content"></div>
|
||||
</div>
|
||||
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
<script type="text/javascript" src="jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var tooltip = {
|
||||
'tileSize': 32,
|
||||
@@ -125,7 +125,7 @@
|
||||
tilesShown = tooltip.client_view_w
|
||||
realIconSize = mapWidth / tilesShown,
|
||||
resizeRatio = realIconSize / tooltip.tileSize,
|
||||
//Calculate letterboxing offsets
|
||||
//Calculate letterboxing offsets
|
||||
leftOffset = (map.size.x - mapWidth) / 2,
|
||||
topOffset = (map.size.y - mapHeight) / 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user