Spaces:
Running
Running
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Learning from China's Economic Success</title> | |
<script src="https://cdn.tailwindcss.com"></script> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
<style> | |
.gradient-bg { | |
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); | |
} | |
.chart-container { | |
height: 300px; | |
position: relative; | |
} | |
.timeline-item { | |
position: relative; | |
padding-left: 30px; | |
margin-bottom: 20px; | |
} | |
.timeline-item:before { | |
content: ''; | |
position: absolute; | |
left: 0; | |
top: 5px; | |
width: 15px; | |
height: 15px; | |
border-radius: 50%; | |
background: #3b82f6; | |
} | |
.timeline-connector { | |
position: absolute; | |
left: 7px; | |
top: 20px; | |
bottom: -25px; | |
width: 2px; | |
background: #3b82f6; | |
} | |
.flip-card { | |
perspective: 1000px; | |
} | |
.flip-card-inner { | |
transition: transform 0.6s; | |
transform-style: preserve-3d; | |
} | |
.flip-card:hover .flip-card-inner { | |
transform: rotateY(180deg); | |
} | |
.flip-card-front, .flip-card-back { | |
backface-visibility: hidden; | |
} | |
.flip-card-back { | |
transform: rotateY(180deg); | |
} | |
</style> | |
</head> | |
<body class="gradient-bg min-h-screen"> | |
<div class="container mx-auto px-4 py-8"> | |
<!-- Header --> | |
<header class="text-center mb-12"> | |
<h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4">Learning from China's Economic Success</h1> | |
<p class="text-xl text-gray-600 max-w-3xl mx-auto">Analyzing the drivers of China's growth and mutual learning opportunities between nations</p> | |
</header> | |
<!-- Introduction Section --> | |
<section class="bg-white rounded-xl shadow-lg p-6 mb-12"> | |
<div class="flex flex-col md:flex-row items-center"> | |
<div class="md:w-1/2 mb-6 md:mb-0 md:pr-8"> | |
<h2 class="text-3xl font-bold text-gray-800 mb-4">China's Economic Miracle</h2> | |
<p class="text-gray-600 mb-4">Since implementing economic reforms in 1978, China has transformed from a largely agrarian society into the world's second-largest economy, lifting hundreds of millions out of poverty in the process.</p> | |
<p class="text-gray-600">This remarkable growth offers valuable lessons for other developing nations seeking to accelerate their own economic development while maintaining social stability.</p> | |
</div> | |
<div class="md:w-1/2"> | |
<div class="bg-blue-50 rounded-lg p-4"> | |
<div class="flex justify-between items-center mb-2"> | |
<h3 class="font-semibold text-blue-800">China GDP Growth (1978-2022)</h3> | |
<span class="text-sm text-blue-600"><i class="fas fa-chart-line mr-1"></i> Annual %</span> | |
</div> | |
<div class="chart-container"> | |
<canvas id="growthChart"></canvas> | |
</div> | |
</div> | |
</div> | |
</div> | |
</section> | |
<!-- Key Factors Section --> | |
<section class="mb-12"> | |
<h2 class="text-3xl font-bold text-center text-gray-800 mb-8">Key Drivers of China's Economic Success</h2> | |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
<!-- Card 1 --> | |
<div class="flip-card h-full"> | |
<div class="flip-card-inner h-full rounded-xl shadow-lg"> | |
<div class="flip-card-front bg-white p-6 rounded-xl h-full flex flex-col"> | |
<div class="text-blue-500 text-4xl mb-4"> | |
<i class="fas fa-industry"></i> | |
</div> | |
<h3 class="text-xl font-bold text-gray-800 mb-3">Manufacturing Powerhouse</h3> | |
<p class="text-gray-600 flex-grow">China became the "world's factory" by developing massive industrial capacity and supply chain ecosystems.</p> | |
<button class="mt-4 text-blue-500 font-medium self-start">Learn more →</button> | |
</div> | |
<div class="flip-card-back bg-blue-600 text-white p-6 rounded-xl h-full flex flex-col justify-center"> | |
<h3 class="text-xl font-bold mb-3">Manufacturing Strategy</h3> | |
<ul class="list-disc pl-5 space-y-1"> | |
<li>Special Economic Zones attracted foreign investment</li> | |
<li>State-led development of industrial clusters</li> | |
<li>Gradual technology transfer policies</li> | |
<li>Massive infrastructure investment</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<!-- Card 2 --> | |
<div class="flip-card h-full"> | |
<div class="flip-card-inner h-full rounded-xl shadow-lg"> | |
<div class="flip-card-front bg-white p-6 rounded-xl h-full flex flex-col"> | |
<div class="text-green-500 text-4xl mb-4"> | |
<i class="fas fa-graduation-cap"></i> | |
</div> | |
<h3 class="text-xl font-bold text-gray-800 mb-3">Human Capital Development</h3> | |
<p class="text-gray-600 flex-grow">Massive investments in education created a skilled workforce to support economic modernization.</p> | |
<button class="mt-4 text-green-500 font-medium self-start">Learn more →</button> | |
</div> | |
<div class="flip-card-back bg-green-600 text-white p-6 rounded-xl h-full flex flex-col justify-center"> | |
<h3 class="text-xl font-bold mb-3">Education Reforms</h3> | |
<ul class="list-disc pl-5 space-y-1"> | |
<li>9-year compulsory education implemented</li> | |
<li>Massive expansion of higher education</li> | |
<li>Focus on STEM fields</li> | |
<li>Overseas study programs with return incentives</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<!-- Card 3 --> | |
<div class="flip-card h-full"> | |
<div class="flip-card-inner h-full rounded-xl shadow-lg"> | |
<div class="flip-card-front bg-white p-6 rounded-xl h-full flex flex-col"> | |
<div class="text-purple-500 text-4xl mb-4"> | |
<i class="fas fa-route"></i> | |
</div> | |
<h3 class="text-xl font-bold text-gray-800 mb-3">Strategic Planning</h3> | |
<p class="text-gray-600 flex-grow">Five-Year Plans provided clear direction while allowing flexibility to adapt to changing conditions.</p> | |
<button class="mt-4 text-purple-500 font-medium self-start">Learn more →</button> | |
</div> | |
<div class="flip-card-back bg-purple-600 text-white p-6 rounded-xl h-full flex flex-col justify-center"> | |
<h3 class="text-xl font-bold mb-3">Planning Approach</h3> | |
<ul class="list-disc pl-5 space-y-1"> | |
<li>Long-term vision with medium-term targets</li> | |
<li>Balanced regional development strategies</li> | |
<li>Gradual market liberalization</li> | |
<li>Pilot programs before nationwide rollout</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<!-- Card 4 --> | |
<div class="flip-card h-full"> | |
<div class="flip-card-inner h-full rounded-xl shadow-lg"> | |
<div class="flip-card-front bg-white p-6 rounded-xl h-full flex flex-col"> | |
<div class="text-yellow-500 text-4xl mb-4"> | |
<i class="fas fa-globe-asia"></i> | |
</div> | |
<h3 class="text-xl font-bold text-gray-800 mb-3">Global Integration</h3> | |
<p class="text-gray-600 flex-grow">WTO accession and export-oriented policies connected China to global markets.</p> | |
<button class="mt-4 text-yellow-500 font-medium self-start">Learn more →</button> | |
</div> | |
<div class="flip-card-back bg-yellow-600 text-white p-6 rounded-xl h-full flex flex-col justify-center"> | |
<h3 class="text-xl font-bold mb-3">Globalization Strategy</h3> | |
<ul class="list-disc pl-5 space-y-1"> | |
<li>Phased approach to trade liberalization</li> | |
<li>Currency management policies</li> | |
<li>Belt and Road Initiative for connectivity</li> | |
<li>Dual circulation strategy</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<!-- Card 5 --> | |
<div class="flip-card h-full"> | |
<div class="flip-card-inner h-full rounded-xl shadow-lg"> | |
<div class="flip-card-front bg-white p-6 rounded-xl h-full flex flex-col"> | |
<div class="text-red-500 text-4xl mb-4"> | |
<i class="fas fa-lightbulb"></i> | |
</div> | |
<h3 class="text-xl font-bold text-gray-800 mb-3">Innovation Ecosystem</h3> | |
<p class="text-gray-600 flex-grow">From imitation to innovation, China built research capacity and tech champions.</p> | |
<button class="mt-4 text-red-500 font-medium self-start">Learn more →</button> | |
</div> | |
<div class="flip-card-back bg-red-600 text-white p-6 rounded-xl h-full flex flex-col justify-center"> | |
<h3 class="text-xl font-bold mb-3">Innovation Policies</h3> | |
<ul class="list-disc pl-5 space-y-1"> | |
<li>Massive R&D investment growth</li> | |
<li>Made in China 2025 industrial policy</li> | |
<li>Technology parks and incubators</li> | |
<li>Venture capital ecosystem development</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<!-- Card 6 --> | |
<div class="flip-card h-full"> | |
<div class="flip-card-inner h-full rounded-xl shadow-lg"> | |
<div class="flip-card-front bg-white p-6 rounded-xl h-full flex flex-col"> | |
<div class="text-indigo-500 text-4xl mb-4"> | |
<i class="fas fa-balance-scale"></i> | |
</div> | |
<h3 class="text-xl font-bold text-gray-800 mb-3">Political Stability</h3> | |
<p class="text-gray-600 flex-grow">Consistent policy direction created favorable conditions for long-term investments.</p> | |
<button class="mt-4 text-indigo-500 font-medium self-start">Learn more →</button> | |
</div> | |
<div class="flip-card-back bg-indigo-600 text-white p-6 rounded-xl h-full flex flex-col justify-center"> | |
<h3 class="text-xl font-bold mb-3">Governance Model</h3> | |
<ul class="list-disc pl-5 space-y-1"> | |
<li>Meritocratic bureaucracy</li> | |
<li>Performance-based local official evaluation</li> | |
<li>Balanced approach to reform/opening vs stability</li> | |
<li>Anti-corruption campaigns</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</div> | |
</section> | |
<!-- Timeline Section --> | |
<section class="bg-white rounded-xl shadow-lg p-8 mb-12"> | |
<h2 class="text-3xl font-bold text-center text-gray-800 mb-8">China's Economic Reform Timeline</h2> | |
<div class="max-w-3xl mx-auto"> | |
<!-- 1978-1989 --> | |
<div class="timeline-item"> | |
<div class="timeline-connector"></div> | |
<div class="bg-blue-50 rounded-lg p-4"> | |
<div class="flex justify-between items-start mb-2"> | |
<h3 class="text-xl font-bold text-blue-800">Initial Reforms (1978-1989)</h3> | |
<span class="bg-blue-100 text-blue-800 text-sm px-2 py-1 rounded">First Phase</span> | |
</div> | |
<ul class="list-disc pl-5 text-gray-700 space-y-1"> | |
<li>Household Responsibility System in agriculture</li> | |
<li>Creation of Special Economic Zones (SEZs)</li> | |
<li>Dual-track pricing system</li> | |
<li>TVEs (Township and Village Enterprises) emerge</li> | |
</ul> | |
</div> | |
</div> | |
<!-- 1990-2001 --> | |
<div class="timeline-item"> | |
<div class="timeline-connector"></div> | |
<div class="bg-green-50 rounded-lg p-4"> | |
<div class="flex justify-between items-start mb-2"> | |
<h3 class="text-xl font-bold text-green-800">Market Transition (1990-2001)</h3> | |
<span class="bg-green-100 text-green-800 text-sm px-2 py-1 rounded">Second Phase</span> | |
</div> | |
<ul class="list-disc pl-5 text-gray-700 space-y-1"> | |
<li>Price liberalization for most goods</li> | |
<li>SOE (State-Owned Enterprise) reforms</li> | |
<li>Private sector officially recognized</li> | |
<li>Preparation for WTO accession</li> | |
</ul> | |
</div> | |
</div> | |
<!-- 2001-2012 --> | |
<div class="timeline-item"> | |
<div class="timeline-connector"></div> | |
<div class="bg-yellow-50 rounded-lg p-4"> | |
<div class="flex justify-between items-start mb-2"> | |
<h3 class="text-xl font-bold text-yellow-800">Global Integration (2001-2012)</h3> | |
<span class="bg-yellow-100 text-yellow-800 text-sm px-2 py-1 rounded">Third Phase</span> | |
</div> | |
<ul class="list-disc pl-5 text-gray-700 space-y-1"> | |
<li>WTO membership accelerates export growth</li> | |
<li>Massive infrastructure investment</li> | |
<li>Urbanization and real estate boom</li> | |
<li>Global financial crisis response</li> | |
</ul> | |
</div> | |
</div> | |
<!-- 2013-Present --> | |
<div class="timeline-item"> | |
<div class="bg-red-50 rounded-lg p-4"> | |
<div class="flex justify-between items-start mb-2"> | |
<h3 class="text-xl font-bold text-red-800">New Normal (2013-Present)</h3> | |
<span class="bg-red-100 text-red-800 text-sm px-2 py-1 rounded">Current Phase</span> | |
</div> | |
<ul class="list-disc pl-5 text-gray-700 space-y-1"> | |
<li>Shift to domestic consumption and services</li> | |
<li>Belt and Road Initiative launched</li> | |
<li>Focus on technological self-sufficiency</li> | |
<li>Common prosperity and green development</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</section> | |
<!-- Mutual Learning Section --> | |
<section class="bg-blue-600 rounded-xl shadow-lg p-8 mb-12 text-white"> | |
<h2 class="text-3xl font-bold text-center mb-8">Mutual Learning Opportunities</h2> | |
<div class="grid grid-cols-1 md:grid-cols-2 gap-8"> | |
<!-- What China Can Learn --> | |
<div class="bg-white bg-opacity-10 rounded-lg p-6 backdrop-blur-sm"> | |
<h3 class="text-2xl font-bold mb-4 flex items-center"> | |
<i class="fas fa-exchange-alt mr-3"></i> What China Can Learn | |
</h3> | |
<ul class="space-y-3"> | |
<li class="flex items-start"> | |
<i class="fas fa-check-circle mt-1 mr-3 text-green-200"></i> | |
<span>Advanced innovation ecosystems from Silicon Valley and other tech hubs</span> | |
</li> | |
<li class="flex items-start"> | |
<i class="fas fa-check-circle mt-1 mr-3 text-green-200"></i> | |
<span>Financial market sophistication from Western economies</span> | |
</li> | |
<li class="flex items-start"> | |
<i class="fas fa-check-circle mt-1 mr-3 text-green-200"></i> | |
<span>Environmental protection technologies from Europe</span> | |
</li> | |
<li class="flex items-start"> | |
<i class="fas fa-check-circle mt-1 mr-3 text-green-200"></i> | |
<span>Social welfare systems from Nordic countries</span> | |
</li> | |
<li class="flex items-start"> | |
<i class="fas fa-check-circle mt-1 mr-3 text-green-200"></i> | |
<span>Agricultural productivity techniques from Israel and Netherlands</span> | |
</li> | |
</ul> | |
</div> | |
<!-- What Other Countries Can Learn --> | |
<div class="bg-white bg-opacity-10 rounded-lg p-6 backdrop-blur-sm"> | |
<h3 class="text-2xl font-bold mb-4 flex items-center"> | |
<i class="fas fa-exchange-alt mr-3"></i> What Other Countries Can Learn | |
</h3> | |
<ul class="space-y-3"> | |
<li class="flex items-start"> | |
<i class="fas fa-check-circle mt-1 mr-3 text-green-200"></i> | |
<span>Long-term strategic planning and implementation capacity</span> | |
</li> | |
<li class="flex items-start"> | |
<i class="fas fa-check-circle mt-1 mr-3 text-green-200"></i> | |
<span>Large-scale infrastructure development approaches</span> | |
</li> | |
<li class="flex items-start"> | |
<i class="fas fa-check-circle mt-1 mr-3 text-green-200"></i> | |
<span>Pragmatic experimentation with pilot programs</span> | |
</li> | |
<li class="flex items-start"> | |
<i class="fas fa-check-circle mt-1 mr-3 text-green-200"></i> | |
<span>Human capital development at scale</span> | |
</li> | |
<li class="flex items-start"> | |
<i class="fas fa-check-circle mt-1 mr-3 text-green-200"></i> | |
<span>Digital economy governance models</span> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</section> | |
<!-- Country Comparison Tool --> | |
<section class="bg-white rounded-xl shadow-lg p-8 mb-12"> | |
<h2 class="text-3xl font-bold text-center text-gray-800 mb-8">Compare With Your Country</h2> | |
<div class="max-w-2xl mx-auto"> | |
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8"> | |
<div> | |
<label class="block text-gray-700 font-medium mb-2">Select Your Country</label> | |
<select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> | |
<option>United States</option> | |
<option>India</option> | |
<option>Brazil</option> | |
<option>Nigeria</option> | |
<option>Indonesia</option> | |
<option>Vietnam</option> | |
</select> | |
</div> | |
<div> | |
<label class="block text-gray-700 font-medium mb-2">Comparison Metric</label> | |
<select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> | |
<option>GDP Growth Rate</option> | |
<option>Manufacturing Output</option> | |
<option>R&D Investment</option> | |
<option>Infrastructure Quality</option> | |
<option>Education Attainment</option> | |
</select> | |
</div> | |
</div> | |
<div class="bg-gray-50 rounded-lg p-6"> | |
<div class="flex justify-between items-center mb-4"> | |
<h3 class="font-semibold text-gray-800">Comparison Results: China vs [Your Country]</h3> | |
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition"> | |
<i class="fas fa-download mr-2"></i> Export Data | |
</button> | |
</div> | |
<div class="chart-container"> | |
<canvas id="comparisonChart"></canvas> | |
</div> | |
</div> | |
</div> | |
</section> | |
<!-- Conclusion --> | |
<section class="bg-gray-800 text-white rounded-xl shadow-lg p-8"> | |
<h2 class="text-3xl font-bold text-center mb-6">Key Takeaways</h2> | |
<div class="max-w-3xl mx-auto"> | |
<div class="space-y-4"> | |
<p>China's economic success demonstrates that development paths must be tailored to each country's unique historical, cultural and institutional context.</p> | |
<p>While specific policies may not be directly transferable, the underlying principles of pragmatic experimentation, long-term planning, and balanced reform sequencing offer valuable insights.</p> | |
<p>The most effective approach for any nation is selective adaptation - learning from China's experience while developing solutions appropriate to local conditions.</p> | |
</div> | |
<div class="mt-8 text-center"> | |
<button id="quizBtn" class="bg-yellow-400 text-gray-900 font-bold px-6 py-3 rounded-lg hover:bg-yellow-500 transition"> | |
<i class="fas fa-question-circle mr-2"></i> Test Your Knowledge | |
</button> | |
</div> | |
</div> | |
</section> | |
</div> | |
<!-- Quiz Modal --> | |
<div id="quizModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden"> | |
<div class="bg-white rounded-xl p-8 max-w-2xl w-full max-h-[90vh] overflow-y-auto"> | |
<div class="flex justify-between items-center mb-6"> | |
<h3 class="text-2xl font-bold text-gray-800">China's Economic Development Quiz</h3> | |
<button id="closeQuiz" class="text-gray-500 hover:text-gray-700"> | |
<i class="fas fa-times"></i> | |
</button> | |
</div> | |
<div class="space-y-6"> | |
<!-- Question 1 --> | |
<div> | |
<p class="font-medium text-gray-800 mb-3">1. What was the first major economic reform implemented in China in 1978?</p> | |
<div class="space-y-2"> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q1" class="h-4 w-4 text-blue-600"> | |
<span>Privatization of state-owned enterprises</span> | |
</label> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q1" class="h-4 w-4 text-blue-600"> | |
<span>Household Responsibility System in agriculture</span> | |
</label> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q1" class="h-4 w-4 text-blue-600"> | |
<span>Establishment of stock markets</span> | |
</label> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q1" class="h-4 w-4 text-blue-600"> | |
<span>Free floating of the currency</span> | |
</label> | |
</div> | |
</div> | |
<!-- Question 2 --> | |
<div> | |
<p class="font-medium text-gray-800 mb-3">2. Which of these was NOT a key factor in China's economic success?</p> | |
<div class="space-y-2"> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q2" class="h-4 w-4 text-blue-600"> | |
<span>Gradual reform approach</span> | |
</label> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q2" class="h-4 w-4 text-blue-600"> | |
<span>Massive infrastructure investment</span> | |
</label> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q2" class="h-4 w-4 text-blue-600"> | |
<span>Immediate full democratization</span> | |
</label> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q2" class="h-4 w-4 text-blue-600"> | |
<span>Export-oriented industrialization</span> | |
</label> | |
</div> | |
</div> | |
<!-- Question 3 --> | |
<div> | |
<p class="font-medium text-gray-800 mb-3">3. What is the most important lesson other developing countries can learn from China's experience?</p> | |
<div class="space-y-2"> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q3" class="h-4 w-4 text-blue-600"> | |
<span>The need to copy China's political system</span> | |
</label> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q3" class="h-4 w-4 text-blue-600"> | |
<span>The importance of pragmatic, context-specific reforms</span> | |
</label> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q3" class="h-4 w-4 text-blue-600"> | |
<span>That rapid liberalization always works best</span> | |
</label> | |
<label class="flex items-center space-x-3"> | |
<input type="radio" name="q3" class="h-4 w-4 text-blue-600"> | |
<span>That foreign aid is essential for development</span> | |
</label> | |
</div> | |
</div> | |
<button class="w-full bg-blue-600 text-white py-3 rounded-lg font-medium hover:bg-blue-700 transition"> | |
Submit Answers | |
</button> | |
</div> | |
</div> | |
</div> | |
<!-- Footer --> | |
<footer class="bg-gray-900 text-white py-8"> | |
<div class="container mx-auto px-4"> | |
<div class="flex flex-col md:flex-row justify-between items-center"> | |
<div class="mb-4 md:mb-0"> | |
<p class="text-gray-400">© 2023 Economic Development Research</p> | |
</div> | |
<div class="flex space-x-6"> | |
<a href="#" class="text-gray-400 hover:text-white transition"> | |
<i class="fab fa-twitter text-xl"></i> | |
</a> | |
<a href="#" class="text-gray-400 hover:text-white transition"> | |
<i class="fab fa-linkedin text-xl"></i> | |
</a> | |
<a href="#" class="text-gray-400 hover:text-white transition"> | |
<i class="fas fa-envelope text-xl"></i> | |
</a> | |
</div> | |
</div> | |
</div> | |
</footer> | |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
<script> | |
// Growth Chart | |
const growthCtx = document.getElementById('growthChart').getContext('2d'); | |
const growthChart = new Chart(growthCtx, { | |
type: 'line', | |
data: { | |
labels: ['1978', '1985', '1990', '1995', '2000', '2005', '2010', '2015', '2020', '2022'], | |
datasets: [{ | |
label: 'GDP Growth (%)', | |
data: [11.7, 13.5, 3.9, 10.9, 8.5, 11.4, 10.6, 7.0, 2.2, 3.0], | |
borderColor: 'rgb(59, 130, 246)', | |
backgroundColor: 'rgba(59, 130, 246, 0.1)', | |
tension: 0.3, | |
fill: true | |
}] | |
}, | |
options: { | |
responsive: true, | |
plugins: { | |
legend: { | |
display: false | |
} | |
}, | |
scales: { | |
y: { | |
beginAtZero: false | |
} | |
} | |
} | |
}); | |
// Comparison Chart | |
const comparisonCtx = document.getElementById('comparisonChart').getContext('2d'); | |
const comparisonChart = new Chart(comparisonCtx, { | |
type: 'bar', | |
data: { | |
labels: ['China', 'Your Country'], | |
datasets: [{ | |
label: 'GDP Growth Rate (%)', | |
data: [5.2, 2.1], | |
backgroundColor: [ | |
'rgba(59, 130, 246, 0.8)', | |
'rgba(75, 192, 192, 0.8)' | |
], | |
borderColor: [ | |
'rgba(59, 130, 246, 1)', | |
'rgba(75, 192, 192, 1)' | |
], | |
borderWidth: 1 | |
}] | |
}, | |
options: { | |
responsive: true, | |
plugins: { | |
legend: { | |
display: false | |
} | |
}, | |
scales: { | |
y: { | |
beginAtZero: true | |
} | |
} | |
} | |
}); | |
// Quiz Modal | |
const quizBtn = document.getElementById('quizBtn'); | |
const quizModal = document.getElementById('quizModal'); | |
const closeQuiz = document.getElementById('closeQuiz'); | |
quizBtn.addEventListener('click', () => { | |
quizModal.classList.remove('hidden'); | |
}); | |
closeQuiz.addEventListener('click', () => { | |
quizModal.classList.add('hidden'); | |
}); | |
// Close modal when clicking outside | |
window.addEventListener('click', (e) => { | |
if (e.target === quizModal) { | |
quizModal.classList.add('hidden'); | |
} | |
}); | |
</script> | |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Premkatwal7/katwal" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
</html> |